Re: Did WSASend always returned SOCKET_ERROR and error code is WSA_IO_PENDING .. ??
- From: "Arkady Frenkel" <arkadyf@xxxxxxxxxxxxxxxx>
- Date: Wed, 6 Sep 2006 14:43:31 +0300
That usual but not always behavior.
From MSDN :
Overlapped Socket I/O
If an overlapped operation completes immediately, WSASend returns a value of
zero and the lpNumberOfBytesSent parameter is updated with the number of
bytes sent. If the overlapped operation is successfully initiated and will
complete later, WSASend returns SOCKET_ERROR and indicates error code
WSA_IO_PENDING.
HTH
Arkady
"madmanahong" <madmanahong@xxxxxxx> wrote in message
news:1157517005.292964.292540@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Did WSASend always returned SOCKET_ERROR and error code is
WSA_IO_PENDING when I set overlapped..
I used IOCP, through observed, I Find WSASend always return
SOCKET_ERROR, and error code is WSA_IO_PENDING. Is right of my
observed?
Does WSASend can return zero when I set overlapped( example: IOCP )?
.
- Follow-Ups:
- References:
- Prev by Date: Re: socket programing in VC6
- Next by Date: Re: what return value of select() signify?
- Previous by thread: Did WSASend always returned SOCKET_ERROR and error code is WSA_IO_PENDING .. ??
- Next by thread: Re: Did WSASend always returned SOCKET_ERROR and error code is WSA_IO_PENDING .. ??
- Index(es):
Relevant Pages
|