Jump to content
  • Advertisement


This topic is now archived and is closed to further replies.



This topic is 5797 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

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:
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);
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

Share this post

Link to post
Share on other sites

  • Advertisement

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!