[Previous] [Contents] [Index] [Next]

SOCKSinit()

Initialize a connection with a SOCKS server

Synopsis:

#include <sys/select.h>

int SOCKSinit( char* progname );

Library:

socks3r.lib, socks3s.lib

Description:

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 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


[Previous] [Contents] [Index] [Next]