Jump to content
  • Advertisement


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


When to call closesocket()

This topic is 5897 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

Except the fact that closesocket() should be called for every socket handle created using socket(). If a SOCKET_ERROR occurs, on send(), recv(), depending on the WSA error should the closesocket() function becalled and then try to restablish connection or just just restablish the connection and let socket() realocate the handle? If so to what WSA errors should I call closesocket() to?

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.

Participate in the game development conversation and more when you create an account on GameDev.net!

Sign me up!