I am facing a probelm in order to handle data from multiple client in a mutithreaded windows program where server serves each client with different threads.
Probem here is: server always reads(receive) data in the newly create thread(client), irespective of the client tha has sent the message..
In a scenario where Server, Client1 & Client 2 are there and client 2 has joined recently. In this case any data sent by Client 1 server treats as data is sent from Client 2 & handles in the Client 2 thread.
Help on this will be appriciated..
Thanks in advance..