winsock server

所属分类:网络编程
开发工具:Visual C++
文件大小:38KB
下载次数:184
上传日期:2004-11-30 10:38:32
上 传 者baohu
说明:  WINSOCK服务器端示例程序说明 该程序是基于对话框编程的,是采用一对多的方式进行连接的。 整个程序主要由CServerDlg,CServerApp,CListenSocket,CClientSocket构成的。 (所有关于类的说明在代码中有) 下面简单介绍一下程序流程: 主程序调用CListenSocket类的对象来进行对Socket的监听,当收到请求时调用主程序的函数来处理相应的连接,把Socket放进队列中。 对于Socket的接收数据和断开连接是由消息来触发的,是通过调用基类CSocket中的虚函数重载来处理的。 注:详细的过程,在程序代码中均有注释!
(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!)

文件列表:
Server.aps (35972, 2002-05-28)
ClientSocket.cpp (1397, 2002-05-28)
ClientSocket.h (1456, 2002-05-28)
ListenSocket.cpp (971, 2002-05-28)
ListenSocket.h (1394, 2002-05-28)
resource.h (1051, 2002-05-14)
res (0, 2002-05-28)
res\Server.rc2 (398, 2002-05-14)
res\Server.ico (1078, 2002-05-14)
Server.clw (1677, 2002-05-28)
Server.cpp (2157, 2002-05-14)
Server.dsp (4402, 2002-05-14)
Server.dsw (535, 2002-05-14)
Server.h (1324, 2002-05-14)
Server.ncb (66560, 2002-05-28)
Server.opt (71680, 2002-05-28)
Server.plg (883, 2002-05-28)
Server.rc (6081, 2002-05-28)
ServerDlg.cpp (7319, 2002-05-28)
ServerDlg.h (2029, 2002-05-28)
StdAfx.cpp (208, 2002-05-14)
StdAfx.h (1102, 2002-05-14)
WINSOCK服务器端示例程序说明.txt (484, 2002-05-28)

近期下载者

相关文件


收藏者