while(!closesocket(s)) sleep(200);
is this the right way to call the winsock closeocket.
thanks
Mubashir
There shouldn't be any pending send at the time of close otherwise
underlying TCP connection sends reset to the other end. Read the below
link for graceful connection close
http://msdn.microsoft.com/en-us/library/ms738547(VS.85).aspx