Hi,
Is there any equivalent of FD_CLOSE message for blocking sockets ?
I want to check if other side has closed...
Thanks.
Posted on 2002-09-26 08:47:19 by Axial
Try:




invoke recv,hSock,addr tmp,0,MSG_PEEK
.if eax==0
; The socket was "gracefully closed"
.elseif eax==SOCKET_ERROR
; Some other error, use WSAGetLastError
.endif



Untested, but it might work. Of course the best way to check for this is to check the return values of your normal send's and recv's.
Posted on 2002-09-26 09:06:20 by Qweerdy