The Rlisten() socket call completes the binding necessary for a socket to accept connections and creates a connection request queue for incoming requests. This call goes directly to the SOCKS server, rather than querying the SOCKS flag (socks_flag).
Syntax
#include <types.h> #include <sys\socket.h> #include <netinet\in.h> int Rlisten(s, backlog) int s; int backlog;
Parameters
s
Description
This call checks to see if the socket is connected through a SOCKS server, and if not, calls listen(). If it is, the call has no effect.
Return Values
The value 0 indicates success; the value -1 indicates an error. You can get the specific error code by calling sock_errno() or psock_errno().
Error Code
Related Calls