Otherwise, you might feel as if you are using a socket wrench as a hammer hitting the handle of a screw driver to loosen a nut and bolt.
否则,您可能感觉到像用锤子一样使用一个套筒扳手来敲击螺丝刀手柄而拧开螺栓的螺母。
Udp_resvspace -this value should be greater than udp_sendpsace, because it needs to handle as many simultaneous udp packets per socket as it can.
ud p_ resvspace—这个值应该大于udp_sendpsace,因为它需要处理每套接字的、尽可能多的同步udp数据包。
This is important because multiplexing I/O only proves beneficial when the server is required to handle a large number of open socket connections.
这是重要的,因为多路复用I/O只证明在要求服务器处理大量打开的scoket 连接时是有意的。
Main : the main function creates the socket to be used for listening to connections, and then creates the callback for accept to handle each connection through the event handler.
main:主函数创建用来监听连接的套接字,然后创建accept的回调函数以便通过事件处理函数处理每个连接。
You can use your socket handle as the completion key when you register the socket with the IOCP to provide per handle information.
当你把某个套接字和IOCP 关联,你可以用套接字句柄作为完成键去提供单句柄信息。
Figure 5. Open Socket Handle Figure 6. Install Processor and Close Socket Figure 7. Apply Thermal Greast.
图5。打开插座手柄图6。安装处理器和关闭插座手柄图7。使用热量硅胶。
Figure 5. Open Socket Handle Figure 6. Install Processor and Close Socket Figure 7. Apply Thermal Greast.
图5。打开插座手柄图6。安装处理器和关闭插座手柄图7。使用热量硅胶。
应用推荐