I need to build what I call a multiplexer. The purpose is to be able to get multiple input sockets directed through a single output socket. My strategy is to do the following.
On demand I establish a new input socket in an array, make a connection to the output socket and send data through it. Now, I will be receiving data back on the output socket. Since there will be several input sockets, is there a way to identify the input socket who sent that data. Also, since I will receiving multiple returns on the output socket, is there a way to prevent possible data loss by receiving them at the same time.
I will be using VB6, but VB .NET could be used also.