我试过了WSA_INFINITE就没有问题,可以接收到所有连接 while (getState()==xThread::THREAD_RUN) { WSAResetEvent(acceptEvent); DWORD dwRet = WSAWaitForMultipleEvents(1, &acceptEvent, false, 1, false); if (dwRet == WSA_WAIT_TIMEOUT) continue; ...
我试过了WSA_INFINITE就没有问题,可以接收到所有连接 while (getState()==xThread::THREAD_RUN) { WSAResetEvent(acceptEvent); DWORD dwRet = WSAWaitForMultipleEvents(1, &acceptEvent, false, 1, false); if (dwRet == WSA_WAIT_TIMEOUT) continue; 在这段代码反复循环过程中会漏掉网络事件? 我觉得不...
我试过了WSA_INFINITE就没有问题,可以接收到所有连接 while (getState()==xThread::THREAD_RUN) { WSAResetEvent(acceptEvent); DWORD dwRet = WSAWaitForMultipleEvents(1, &acceptEvent, false, 1, false); if (dwRet == WSA_WAIT_TIMEOUT) continue; ...