HB_INETDGRAMRECV()
Get data from a datagram socket
Syntax
HB_INETDGRAMRECV( <socket>, @<cBuffer> [, <nSize> ] ) ; -> nBytesRead
Arguments
<socket> a socket previously created / opened
<cBuffer> is the target buffer and must be passed by reference
<nSize>
Returns
Returns number of bytes read, or -1 on error
Description
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.
Compliance
Harbour
Pingback: Harbour All Functions – H | Viva Clipper !
Pingback: Harbour inet Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !