Get data from a datagram socket
HB_INETDGRAMRECV( <socket>, @<cBuffer> [, <nSize> ] ) ; -> nBytesRead
<socket> a socket previously created / opened
<cBuffer> is the target buffer and must be passed by reference
Returns number of bytes read, or -1 on error
Reads at maximum nSize bytes incoming from a UDP socket, if nSize is given, or reads at maximum cBuffer length if nSize is not given.
There isn’t any guarantee that all the data required to be read is really sent from the kernel to the application: the kernel should just return the last complete datagram that has been received, up to nSize bytes.