Function SocketRecv() Professional
Receives data from a connected socket.
SocketRecv( <nSocket> , ; @<cBuffer> , ; [<nLength>], ; [<nFlag>] , ; [@<nError>] ) --> nBytesRead
|MSG_NORMAL *)||Copy incoming data to <cBuffer> and remove copied data from the input queue.|
|MSG_PEEK||Copy incoming data to <cBuffer> and leave the data in the input queue.|
|MSG_OOB||Process out-of-band data.|
Returns the number of bytes read from the input queue or 0 in case of a failure.
This function receives data on a connected datagram or stream socket and copies it into a buffer that must be passed by reference. The number of bytes read from the input queue is returned. If no data is available, the function blocks waiting for a message to arrive, unless the socket is in nonblocking mode. When a datagram is received that is too long to fit into the buffer, excess data is discarded.
If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.