WSARecv question
-
The WSARecv winsock api has the ability to do overlapped i/o the second parameter is the number of WSABUFs The sixth parameter is a overlapped structure, the 5th parameter of the overlapped is one or MORE WSAevents I would be doing a
WSAWaitForMultipleEvents
with each event corresponding to a buffer when WSAevent ...n is signaled WSABUF ... n would have data I would then have to put the buffer back together think I got it right thanks Forgot one more thing I am doing WSAAsyncSelect to have a receive notification sent to the window when that message is sent I am assuming i/o is Imminent should I create a thread to do the
WSAWaitForMultipleEvents
or since I got a notification the receive is about to happen doing it in the window under the main thread is ok thanks