Click to See Complete Forum and Search --> : WSAAsyncSelect


Ness
March 13th, 2004, 11:54 AM
When using WSAAsyncSelect, I can only use one message for one event. But in the MSDN documentation, they mention you can register different events to one messasge. Now my question is, if I did register a few events to a message, how would I differ one event from another event since each event is being delivered to the same message? Would I be able to get the event ID? Or do I have to use a low/high-word. And if I do, what would I recieve it from? wParam?

Ness
March 13th, 2004, 01:04 PM
I got it figured out, but now I got another question.

When I recieve a notification of incoming data, do I have to call recv? or does one of the parameters of the message contain the data?

Andreas Masur
March 13th, 2004, 01:36 PM
[Moved thread]

j0nas
March 14th, 2004, 02:30 AM
You must call recv() if you got a FD_READ event. NOTE: always check for errors (ie iErrorCode[FD_READ_BIT]).