Avaliação do Usuário

Estrela inativaEstrela inativaEstrela inativaEstrela inativaEstrela inativa
 

hb_inetDGramRecv()

Get data from a datagram socket
Syntax
hb_inetDGramRecv( <socket>, @<cBuffer> [, <nSize> ] ) -> nBytesRead
Argument(s)
<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

This is Harbour specific