Corne
New member
Im writing a Telnet Server application using Asynchronous sockets.
I spawn a listener thread to handel incomming connections and create a separate client socket for each new connection.
I then set the new client socket to BeginReceive().
My problem: When two client socket connections send data at the same time, the one socket connection reads the data from both connections and the other connections Recieve Callback never fires.
I first dicovered this when I ported a CS sample to VB that used the TCPClient and TCPListener objects. I then read in the MSDN library that these objects are for synchronous blocking communication only. Although it worked fine otherwise.
I then re-wrote everything from scratch using just sockets with the MSDN Library as the only reference. I still get this same problem.
Any Ideas?
I spawn a listener thread to handel incomming connections and create a separate client socket for each new connection.
I then set the new client socket to BeginReceive().
My problem: When two client socket connections send data at the same time, the one socket connection reads the data from both connections and the other connections Recieve Callback never fires.
I first dicovered this when I ported a CS sample to VB that used the TCPClient and TCPListener objects. I then read in the MSDN library that these objects are for synchronous blocking communication only. Although it worked fine otherwise.
I then re-wrote everything from scratch using just sockets with the MSDN Library as the only reference. I still get this same problem.
Any Ideas?