Introduction - If you have any usage issues, please Google them yourself
The WINSOCK server-side sample program that the program is a dialog-based programming, is one-to-many connection. The entire program CServerDlg, CServerApp CListenSocket, CClientSocket constitutes. (All instructions to the class in the code) The following is a brief look at the program flow: The main program calls CListenSocket class object to the Socket listener, the main function is called when the request is received to deal with the appropriate connection, the Socket into the queue. Socket to receive data and disconnect is triggered by the message is handled by calling the virtual function overloading base class CSocket. Note: The detailed process both in the code comments!