If the socket connection associated in index 0 of the event array is continually receiving data such that after the event is reset additional data arrives causing the event to be signaled again, the rest of the events in the array are starved. This is clearly undesirable. Once an event within the loop is signaled and handled, all events in the array should be checked to see if they are signaled as well. This can be accomplished by using WSAWaitForMultipleEvents with each individual event handle after the first signaled event and specifying a dwTimeOut of zero.
这是socket模型中WSAEventSelect模型中的一句话,谁帮我解释一下啊,时要在一次WSAWaitForMultipleEvents后,再调用一次WSAWaitForMultipleEvents吗??还是把dwTimeout设置为0就可以实现了呢?
这是socket模型中WSAEventSelect模型中的一句话,谁帮我解释一下啊,时要在一次WSAWaitForMultipleEvents后,再调用一次WSAWaitForMultipleEvents吗??还是把dwTimeout设置为0就可以实现了呢?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货