loStHead,
I'm using synchronous sockets actually, which is one thread per connection. I simply create a new thread and pass the socket handle (of an incoming connection), or ask the thread to connect. All non blocking.
Asynchronous is event driven, and a bit harder to keep in sync, IMO. But that depends on programming experience. |