Initialize a connection with a SOCKS server
#include <sys/select.h> int SOCKSinit( char * progname );
The SOCKSinit() function initializes some defaults for the SOCKS library and also sets the program name that appears 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 appears instead of the program name).
For more information about SOCKS and its libraries, see the appendix, SOCKS — A Basic Firewall.
Safety: | |
---|---|
Cancellation point | No |
Interrupt handler | No |
Signal handler | No |
Thread | No |