网络 acceptex公司
The number of posted AcceptEx operations will depend on the type of traffic your server expects.
至于发出多少个AcceptEx才够,就取决于你的服务器程序所期待的通信交通类型。
One last thing to note about AcceptEx is that a Winsock2 implementation from another vendor is not required to implement these APIs.
有关AcceptEx()的最后一个注意事项:要实现这些API,并不需要其它提供商提供的Winsock2实现。
This means that if a client connects and immediately sends data, AcceptEx will complete only after the connection is established and the client sends data.
也就是说,如果客户端在发出连接的同时传输数据,你的AcceptEx调用在连接创建并接收了客户端数据后就可以立刻返回。
This can be very useful, but it can also lead to problems since the AcceptEx call will not return until data is received, even if a connection has been established.
这样可能是很有用的,但是也可能会引发问题,因为AcceptEx必须等全部客户端数据都收到了才返回。
To prevent malicious attacks or stale connections, the accepting thread should occasionally check the sockets outstanding in AcceptEx by calling getsockopt and SO_CONNECT_TIME.
要预防此类攻击,接受连接的线程应该不时地通过调用getsockopt()函数(选项参数为SO_CONNECT_TIME)来检查AcceptEx()里守候的套接字。