View Single Post
Old May 25th, 2006, 8:32 PM   #5
The Dark
Expert Programmer
 
Join Date: Jun 2005
Posts: 877
Rep Power: 4 The Dark is on a distinguished road
I haven't use the WSA Network Events before, but a quick google showed a few examples. It looks like you need to create the handle with WSACreateEvent before you can call WSAEventSelect.
Then you need to move your WSAWaitForMultipleEvents and WSAEnumNetworkEvents calls to inside the loop, as at the moment your loop isn't waiting for any more data before looping around.
This page has a good description of what to do.
The Dark is offline   Reply With Quote