Introduction - If you have any usage issues, please Google them yourself
Winsock server sample program note that the procedure was based on dialog programming, using one-to-many is the way to connect. The entire process by CServerDlg, CServerApp, CListenSocket, constitute the CClientSocket. (All categories on the note in code) The following outlines procedures have : main program called CListenSocket category to the target of the listening socket, when the call request is received when the main program functions to the corresponding connections, socket into the queue. Socket for the reception of data and disconnected from the news to trigger, by calling the base class CSocket the virtual function to handle the heavy load. Note : Details of the procedure code have Notes!
Packet : 11490winsock server.rar filelist
Server.aps
ClientSocket.cpp
ClientSocket.h
ListenSocket.cpp
ListenSocket.h
ReadMe.txt
resource.h
res
res\Server.rc2
res\Server.ico
Server.clw
Server.cpp
Server.dsp
Server.dsw
Server.h
Server.ncb
Server.opt
Server.plg
Server.rc
ServerDlg.cpp
ServerDlg.h
StdAfx.cpp
StdAfx.h
WINSOCK服务器端示例程序说明.txt