文件名称:WSA2
- 所属分类:
- Internet/网络编程
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 538kb
- 下载次数:
- 0次
- 提 供 者:
- 徐**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
服务器主线程等待 在指定端口上监听到的来自客户端的连接请求队列中的接受连接事件上的通知。
1、等待失败则打印等待失败信息并进入下一次等待。
2、等待超时则打印等待超时信息并进入下一次等待。
3、等待到连接建立事件通知则 负责把此套接字的句柄传给空闲线程中新申请的
套接字对象节点,并给此套接字建立与它相关的事件对象,这样此套接字的
相关事件就交给相关子线程去维护,主线程则返回并进入下一次等待
-Server main thread to wait for the specified port on the monitor from the client connection requests queue of accepted connections incident notification. 1, waiting for waiting for the failure of the failure of the print information and to enter the next wait. 2, waiting for timeout while waiting for overtime to print information and to enter the next wait. 3, wait until the connection is established will be responsible for event notification to the socket handle to the idle thread in new applications socket object node, and to the socket associated with it the establishment of the event object, so that the socket related incidents to the relevant sub-thread to maintenance, the main thread is returned and entered the next waiting
1、等待失败则打印等待失败信息并进入下一次等待。
2、等待超时则打印等待超时信息并进入下一次等待。
3、等待到连接建立事件通知则 负责把此套接字的句柄传给空闲线程中新申请的
套接字对象节点,并给此套接字建立与它相关的事件对象,这样此套接字的
相关事件就交给相关子线程去维护,主线程则返回并进入下一次等待
-Server main thread to wait for the specified port on the monitor from the client connection requests queue of accepted connections incident notification. 1, waiting for waiting for the failure of the failure of the print information and to enter the next wait. 2, waiting for timeout while waiting for overtime to print information and to enter the next wait. 3, wait until the connection is established will be responsible for event notification to the socket handle to the idle thread in new applications socket object node, and to the socket associated with it the establishment of the event object, so that the socket related incidents to the relevant sub-thread to maintenance, the main thread is returned and entered the next waiting
(系统自动生成,下载前可以参看下载内容)
下载文件列表
WSA可伸缩服务器设计尝试
.......................\Multiple_thread_client
.......................\......................\client.cpp
.......................\......................\client.dsp
.......................\......................\client.dsw
.......................\......................\client.h
.......................\......................\client.ncb
.......................\......................\client.opt
.......................\......................\client.plg
.......................\......................\Debug
.......................\......................\init_sock.h
.......................\......................\ReadMe.txt
.......................\......................\resource.h
.......................\......................\StdAfx.cpp
.......................\......................\StdAfx.h
.......................\......................\~VC704.tmp
.......................\......................\~VC705.tmp
.......................\wsa_event_server
.......................\................\Debug
.......................\................\init_sock.h
.......................\................\init_socket.cpp
.......................\................\init_socket.h
.......................\................\ReadMe.txt
.......................\................\server.cpp
.......................\................\server.dsp
.......................\................\server.dsw
.......................\................\server.ncb
.......................\................\server.opt
.......................\................\server.plg
.......................\................\sock.h
.......................\................\StdAfx.cpp
.......................\................\StdAfx.h
.......................\WSA可伸缩服务器设计尝试2.doc
.......................\WSA可伸缩服务器设计尝试2.wps
.......................\Multiple_thread_client
.......................\......................\client.cpp
.......................\......................\client.dsp
.......................\......................\client.dsw
.......................\......................\client.h
.......................\......................\client.ncb
.......................\......................\client.opt
.......................\......................\client.plg
.......................\......................\Debug
.......................\......................\init_sock.h
.......................\......................\ReadMe.txt
.......................\......................\resource.h
.......................\......................\StdAfx.cpp
.......................\......................\StdAfx.h
.......................\......................\~VC704.tmp
.......................\......................\~VC705.tmp
.......................\wsa_event_server
.......................\................\Debug
.......................\................\init_sock.h
.......................\................\init_socket.cpp
.......................\................\init_socket.h
.......................\................\ReadMe.txt
.......................\................\server.cpp
.......................\................\server.dsp
.......................\................\server.dsw
.......................\................\server.ncb
.......................\................\server.opt
.......................\................\server.plg
.......................\................\sock.h
.......................\................\StdAfx.cpp
.......................\................\StdAfx.h
.......................\WSA可伸缩服务器设计尝试2.doc
.......................\WSA可伸缩服务器设计尝试2.wps