AN_RECVSection: Antinat Programmer's Manual (3)
Index Return to Main Contents
The an_recv(3) function is used to fetch incoming data from a proxy-capable socket. The socket must be in the accepted or connected state. If the socket is in blocking mode, the an_recv(3) function will block until some data is successfully read from the socket. In non-blocking mode, if no data is available, the return value will be -1, and errno set to EAGAIN. To send data back to the originator of this data, use an_send(3).
buf is a destination buffer to place the data in. It must contain at least as many bytes as specified in length, below.
length is the length of the user-supplied buffer, buf.
Malcolm Smith <email@example.com>
Time: 14:19:44 GMT, January 09, 2005