Async socket - Duplex communication with permanent sockets in c#
问题 I'm trying to do asynchronous socket communication, and want the server to keep a list of all connected sockets, so he can broadcast messages to them. First I took the examples from msdn Asynchronous Socket Server and altered them a little so they don't close the sockets. (just removed the .shutdown and .Close commands) But doing so, seems to cause the client to hang in the "receiving part". Here are the changes I made to the msdn examples: Client: only changed ReceiveCallback() so it stays