HB_INETSEND()
Sent data through a socket
Syntax
HB_INETSEND( <socket>, <cBuffer> [, <nLength> ] ) -> nResult
Arguments
<socket> a socket previously created / opened
<cBuffer>
<nLength>
Returns
The amount of data written, 0 (zero) if the socket is closed, or -1 on an error
Description
Send data being stored in a string over the socket.
The nLength parameter can be given to allow writing only a part of the string.
There is no guarantee that all of cBuffer will be sent, as this is a decision that is up to the OS; this function does not take care to ensure that the data is really sent; check the returned number and send the part that has not been sent.
To ensure that all the data is sent before the function returns, use the hb_InetSendAll() function.
On error, the error in the socket is set.
Compliance
Harbour
Pingback: Harbour All Functions – H | Viva Clipper !
Pingback: Harbour inet Functions | Viva Clipper !
Pingback: Harbour RG Summary | Viva Clipper !