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就可以实现了呢?

解决方案 »

  1.   

    google中的翻译:如果套接字连接相关的指数0阵列的事件不断接收数据,例如,在事件被重置造成的额外数据到达事件将再次暗示,其余的事件数组饿死。这显然是不可取的。一旦事件回路暗示和处理中的所有活动阵列应检查,看看他们是否有暗示的。这可以通过使用WSAWaitForMultipleEvents每个事件处理后的第一个暗示事件,并注明dwTimeOut零。这样翻译肯定不准确,再把读不懂的句子,单词自己查一下我英语特别烂,遇到不懂的就去查google,,,
      

  2.   

    我有翻译完的那个版本,就是pdf格式懒得再写出来,就是像问一下话里面是什么意思