Winsock Overlapped I/O example
Posted on 2004-09-24
I've got a threaded server that accepts about 500 connections. From what I've read the best winsock method is to use Overlapped I/O. can anyone point me to an example that I could look at or give me some pointers on Overlapped I/O in winsock. I'm not using the winsock2 lib and no MFC. This is the basic method I'm using right now but I'm getting data loss.
1. Accept connection & create a thread
2. Recv in the thread until the term signal is sent
3. Based on recv buffer send data back
4. Clean up and close thread when term signal is sent