Function SocketRecvFrom() Professional
Receives a datagram and stores the sender's address.
SocketRecvFrom( <nSocket> , ; @<cBuffer> , ; [<nLength>] , ; [<nFlag>] , ; [@<aFromAddr>], ; [@<nError>] ) --> nBytesWritten
|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.|
|IPADDR_ADDR||Numeric IP address in network byte order.|
|IPADDR_FAMILY||Address family (Windows sockets support only AF_INET).|
|IPADDR_PORT||Number of port the socket is associated with.|
Returns the number of bytes read from the input queue or 0 in case of a failure.
This function is typically used to receive datagrams on unconnected sockets. However, the function can be called on any datagram socket, be it connected or unconnected. SocketRecvFrom() copies incoming data into a buffer and may be used to obtain a datagram sender's address data. The number of bytes read from the input queue is returned. When a datagram is received that is too long to fit into the buffer, excess data is discarded. If no datagram is available, the function blocks waiting for a message to arrive, unless the socket is in nonblocking mode.
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.