When using blocking sockets and the recv()
function, when the socket has received a FIN packet, recv()
will return 0
.
However, how to know when the socket has received a FIN packet when using WSARecv()
and IOCP? I think that the lpNumberOfBytesRecvd
will also be set to 0
, but I'm not sure.