Advertisement

When to call closesocket()

Started by April 29, 2002 02:28 PM
-1 comments, last by ANSI2000 22 years, 9 months ago
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?

This topic is closed to new replies.

Advertisement