文件名称:sockInWeb
- 所属分类:
- Web服务器
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 19kb
- 下载次数:
- 0次
- 提 供 者:
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
此工程主要包含了两个自己编写的类,:CSocketBlockServer和CSocketBlockClient。程序主要说明如何通过使用这两个类,采用"阻塞SOCKET"来实现快捷、高效的目的。我们平常所见的SOCKET程序,一般都是使用"非阻塞SOCKET",以其提高程序的效率。那么有没有办法使用"阻塞SOCKET"也能方便、快捷的实现我们的网络通讯要求呢?CSocketBlockServer和CsocketBlockClient主要是为了这一目的而编写的。目的分述如下: 1.为了简化使用"阻塞SOCKET"的编程。 2.此外,我发现很多类似的程序中,服务器或客户端既是服务器、又是客户端,尽管这 并不影响通讯,但这确实淡化了C/S模式的本意 这两个类很好的体现了C/S模式,而且 支持多用户。 3.这两个类,可以做为"非阻塞SOCKET"的补充。 使用时,需要在主程序中开辟额外的线程,在线程内部调用这两个类的成员函数来实现,实现过程比较简便。只要客户端成功连接到服务器,双方就可以任意发送数据,而不需要多 次连接。 如果编译时有错误提示:找不到ws2_32.lib,则请确认该文件的实际路径,将此文件加入工程中即可。-this project mainly involves the preparation of his two categories : CSocketBlockServer and CSocketBlockClient. The procedure on how to use these two categories, "SOCKET obstruction" to achieve a fast, efficient purpose. Usually we see SOCKET procedures are generally used "nonblocking socket," with the efficiency of the process. So is there any way the use of "obstruction SOCKET" convenient and efficient realization of network communications requirements? CSocketBlockServer and CsocketBlockClient mainly to the purpose of preparation. A breakdown is as follows : 1. To simplify the use of "obstruction SOCKET" programming. 2. Moreover, I found that many similar proceedings, the server or client is server, the client is, although this does not affect com
(系统自动生成,下载前可以参看下载内容)
下载文件列表
MultiThreadSock
...............\MultiThreadSock.cpp
...............\MultiThreadSock.dsp
...............\MultiThreadSock.dsw
...............\MultiThreadSock.h
...............\MultiThreadSock.rc
...............\MultiThreadSockDlg.cpp
...............\MultiThreadSockDlg.h
...............\ReadMe.txt
...............\res
...............\...\MultiThreadSock.rc2
...............\Resource.h
...............\SocketBlockClient.cpp
...............\SocketBlockClient.h
...............\SocketBlockServer.cpp
...............\SocketBlockServer.h
...............\StdAfx.cpp
...............\StdAfx.h
...............\MultiThreadSock.cpp
...............\MultiThreadSock.dsp
...............\MultiThreadSock.dsw
...............\MultiThreadSock.h
...............\MultiThreadSock.rc
...............\MultiThreadSockDlg.cpp
...............\MultiThreadSockDlg.h
...............\ReadMe.txt
...............\res
...............\...\MultiThreadSock.rc2
...............\Resource.h
...............\SocketBlockClient.cpp
...............\SocketBlockClient.h
...............\SocketBlockServer.cpp
...............\SocketBlockServer.h
...............\StdAfx.cpp
...............\StdAfx.h