文件名称:sockInWeb
-
所属分类:
- 标签属性:
- 上传时间:2008-10-13
-
文件大小:19.7kb
-
已下载: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/res
MultiThreadSock/res/MultiThreadSock.rc2
MultiThreadSock/res/MultiThreadSock.ico
MultiThreadSock/MultiThreadSock.cpp
MultiThreadSock/MultiThreadSock.dsp
MultiThreadSock/MultiThreadSock.dsw
MultiThreadSock/MultiThreadSock.h
MultiThreadSock/MultiThreadSock.rc
MultiThreadSock/MultiThreadSockDlg.cpp
MultiThreadSock/MultiThreadSockDlg.h
MultiThreadSock/ReadMe.txt
MultiThreadSock/Resource.h
MultiThreadSock/SocketBlockClient.cpp
MultiThreadSock/SocketBlockClient.h
MultiThreadSock/SocketBlockServer.cpp
MultiThreadSock/SocketBlockServer.h
MultiThreadSock/StdAfx.cpp
MultiThreadSock/StdAfx.h
www.dssz.com.txt
MultiThreadSock/res
MultiThreadSock/res/MultiThreadSock.rc2
MultiThreadSock/res/MultiThreadSock.ico
MultiThreadSock/MultiThreadSock.cpp
MultiThreadSock/MultiThreadSock.dsp
MultiThreadSock/MultiThreadSock.dsw
MultiThreadSock/MultiThreadSock.h
MultiThreadSock/MultiThreadSock.rc
MultiThreadSock/MultiThreadSockDlg.cpp
MultiThreadSock/MultiThreadSockDlg.h
MultiThreadSock/ReadMe.txt
MultiThreadSock/Resource.h
MultiThreadSock/SocketBlockClient.cpp
MultiThreadSock/SocketBlockClient.h
MultiThreadSock/SocketBlockServer.cpp
MultiThreadSock/SocketBlockServer.h
MultiThreadSock/StdAfx.cpp
MultiThreadSock/StdAfx.h
www.dssz.com.txt
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.