Send socket result 0x000000be

0

What means a result of 0x000000be in send command:

iResult = send( ConnectSocket, dataToSend, (int) strlen(dataToSend), 0 );

I didn't found this return code here: http://msdn.microsoft.com/en-us/library/windows/desktop/ms740668(v=vs.85).aspx

Any ideas?

Thx

c++
winapi
sockets
send
asked on Stack Overflow Dec 4, 2012 by leon22

1 Answer

5

The value returned by send is the number of bytes it sent. If it fails it returns SOCKET_ERROR and you use WSAGetLastError to get the error code, which is the codes listed in your link. Read the manual page for send instead.


User contributions licensed under CC BY-SA 3.0