Archived

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

ANSI2000

When to call closesocket()

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