winsock - closesocket triggers WSARecvFrom completion routine -
I noticed that when I call on the CallBasket, then WSARecvFrom (which is waiting for incoming data until that time) The program for completion is starting with DwError = 0 and cbTransferred = Trash, although there is no incoming data pending for that socket.
Whenever I turn off the socket, no way can be said for that? I tried to call shutdown before shutting down, but he did not help.
What values do WSARecvFrom () return itself? I have not used WSARecvFrom () myself, but MSDN says that Dover is a complete condition, so I would think that there is no real error in 0, or there is no data.
In addition to this, can you cancel the call before closing?
Comments
Post a Comment