文件名称:winsock-server6-8
- 所属分类:
- Internet/网络编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 3.43mb
- 下载次数:
- 0次
- 提 供 者:
- 爱***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
WINSOCK服务器端示例程序说明
该程序是基于对话框编程的,是采用一对多的方式进行连接的。
整个程序主要由CServerDlg,CServerApp,CListenSocket,CClientSocket构成的。
(所有关于类的说明在代码中有)
下面简单介绍一下程序流程:
主程序调用CListenSocket类的对象来进行对Socket的监听,当收到请求时调用主程序的函数来处理相应的连接,把Socket放进队列中。
对于Socket的接收数据和断开连接是由消息来触发的,是通过调用基类CSocket中的虚函数重载来处理的。
注:详细的过程,在程序代码中均有注释!-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!
该程序是基于对话框编程的,是采用一对多的方式进行连接的。
整个程序主要由CServerDlg,CServerApp,CListenSocket,CClientSocket构成的。
(所有关于类的说明在代码中有)
下面简单介绍一下程序流程:
主程序调用CListenSocket类的对象来进行对Socket的监听,当收到请求时调用主程序的函数来处理相应的连接,把Socket放进队列中。
对于Socket的接收数据和断开连接是由消息来触发的,是通过调用基类CSocket中的虚函数重载来处理的。
注:详细的过程,在程序代码中均有注释!-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!
(系统自动生成,下载前可以参看下载内容)
下载文件列表
winsock server6-8\ClientSocket.cpp
.................\ClientSocket.h
.................\ListenSocket.cpp
.................\ListenSocket.h
.................\ReadMe.txt
.................\recedata.txt
.................\Release\ClientSocket.obj
.................\.......\ClientSocket.sbr
.................\.......\ListenSocket.obj
.................\.......\ListenSocket.sbr
.................\.......\Server.bsc
.................\.......\Server.exe
.................\.......\Server.obj
.................\.......\Server.pch
.................\.......\Server.res
.................\.......\Server.sbr
.................\.......\ServerDlg.obj
.................\.......\ServerDlg.sbr
.................\.......\StdAfx.obj
.................\.......\StdAfx.sbr
.................\.......\vc60.idb
.................\res\Server.ico
.................\...\Server.rc2
.................\resource.h
.................\senddata.txt
.................\senddata2.txt
.................\Server.aps
.................\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
.................\Release
.................\res
winsock server6-8
.................\ClientSocket.h
.................\ListenSocket.cpp
.................\ListenSocket.h
.................\ReadMe.txt
.................\recedata.txt
.................\Release\ClientSocket.obj
.................\.......\ClientSocket.sbr
.................\.......\ListenSocket.obj
.................\.......\ListenSocket.sbr
.................\.......\Server.bsc
.................\.......\Server.exe
.................\.......\Server.obj
.................\.......\Server.pch
.................\.......\Server.res
.................\.......\Server.sbr
.................\.......\ServerDlg.obj
.................\.......\ServerDlg.sbr
.................\.......\StdAfx.obj
.................\.......\StdAfx.sbr
.................\.......\vc60.idb
.................\res\Server.ico
.................\...\Server.rc2
.................\resource.h
.................\senddata.txt
.................\senddata2.txt
.................\Server.aps
.................\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
.................\Release
.................\res
winsock server6-8