SOCKSinit()

initialize a connection with a SOCKS server

Synopsis:

#include <sys/select.h>

int SOCKSinit( char *progname );

Description:

The SOCKSinit() function initializes some defaults for the SOCKS library and also sets the program name that will appear in the syslog output.

You don't have to call this function before making a SOCKS library call (but if you don't, a generic ``SOCKSclient'' will appear instead of the program name).

For more information about SOCKS and its libraries, see Appendix A: SOCKS - A Basic Firewall.

Returns:

0
Success.
1
An error occurred; errno is set.

Classification:

SOCKS

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

Raccept(), Rbind(), Rconnect(), Rgetsockname(), Rlisten(), Rrcmd(), Rselect(), Appendix A: SOCKS - A Basic Firewall.