AN_SENDSection: Antinat Programmer's Manual (3)
Index Return to Main Contents
The an_send(3) function is used to send incoming data to a proxy-capable socket. The socket must be in the accepted or connected state. If the socket is in blocking mode, the an_send(3) function will block until some data is successfully sent into the socket. In non-blocking mode, if no data can be sent, the return value will be -1, and errno set to EAGAIN. To fetch data back from the recipient of this data, use an_recv(3).
buf is a buffer containing the data to send.
length is the number of bytes to send from the user supplied buffer.
Malcolm Smith <firstname.lastname@example.org>
Time: 14:19:44 GMT, January 09, 2005