WSAAsyncSelect(user->com, server->hwnd, CONNECTION_IO_READY, FD_READ|FD_CLOSE);
WSAEventSelect(user->com, server->events[server->events_inuse-1], FD_READ|FD_CLOSE);
WSAResetEvent(server->events[server->events_inuse-1]);
FD_CLOSE
I''ve been messing with soe networking stuff using version 1.1 of Winsock in windows. I encountered a problem though. on the server end of things, I use overlapped I/O for handling everything in a seperate thread. when I create the connection, the socket connected to the client sets up the events like this:
and then I use WSAWaitForMultipleEvents with the list of events and everything to detect any thing happening. The server will detect when I send information to the server and I can do whatever. But when I close the connection from the client end of things, I never get a FD_CLOSE message...any ideas?
Thanks
--Andrew
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement
Recommended Tutorials
Advertisement