hb_inetDGramRecv()

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

Advertisements

3 responses to “hb_inetDGramRecv()

  1. Pingback: Harbour All Functions – H | Viva Clipper !

  2. Pingback: Harbour inet Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s