|
WSAWaitForMultipleEvents 87
[复制链接]
在WinXP下,调用正常,但是在Wince下执行WSAWaitForMultipleEvents返回错误 87参数不正确。
请教一下,错误在什么地方?
已下代码在线程中执行,pClientSocket->m_hClientEvent是与连接Socket对应的事件,
WSAWaitForMultipleEvents等待1000..
- dwIndex = WSAWaitForMultipleEvents(1,&pClientSocket->m_hClientEvent,TRUE,1000,0);
- if (WSA_WAIT_TIMEOUT /* 258 */ ==dwIndex)
- continue;
- else
- if (WSA_WAIT_FAILED == dwIndex)
- {
- pClientSocket->m_strLastError.Format("WSAWaitForMultipleEvents 等待事件发生错误,错误原因:%d",WSAGetLastError());
- AfxMessageBox(pClientSocket->m_strLastError);
- continue;
- }
复制代码
|
|