Sent data through a socket
HB_INETSEND( <socket>, <cBuffer> [, <nLength> ] ) -> nResult
<socket> a socket previously created / opened
The amount of data written, 0 (zero) if the socket is closed, or -1 on an error
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.