I created listen and read in two different loops. Read reads from all the connections. Listen register new connections in an array. How is it possible to read the connection id from this array to read the data from it ?
The easiest way to share your connection id array (or any data for that matter) between two parallel loops in LabVIEW is to use a local or global variable.
Alternately, you can use a queue, notifier, or real-time FIFO.