result = ::send(s, buf, length, flag)
How much data will be eventually sent? when I get result == SOCKET_ERROR
and WSAGetLastError () == WSA_IO_PENDING
will length
bytes of buf
be all eventually sent?
or I need to try re-sending the same buf data again?
On the other hand
WSA_IO_PENDING
Overlapped operations will complete later.
The application has initiated an overlapped operation that cannot be completed immediately. A completion indication will be given later when the operation has been completed....
it sounds to me like the send operation WILL be completed later....
UPDATE: the further question is asked here Unexpected WSA_IO_PENDING from blocking (overlapped I/O) Winsock2 calls