Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/s/socksinit.html on line 1

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/s/socksinit.html on line 1

Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/s/socksinit.html on line 8

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/s/socksinit.html on line 8

SOCKSinit()

Initialize a connection with a SOCKS server

Synopsis:

#include <sys/select.h>

int SOCKSinit( char * progname );

Arguments:

progname
The name that you want to associate with the your program. The default is SOCKSclient.

Library:

libsocks

Use the -l socks option to qcc to link against this library.

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 the appendix, SOCKS — A Basic Firewall.

Returns:

0
Success.
1
An error occurred (errno is set).

Classification:

SOCKS

Safety:
Cancellation point No
Interrupt handler No
Signal handler No
Thread No

See also:

Raccept(), Rbind(), Rconnect(), Rgetsockname(), Rlisten(), Rrcmd(), Rselect()

SOCKS — A Basic Firewall


Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/neutrino/lib_ref/s/socksinit.html on line 136

Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/neutrino/lib_ref/s/socksinit.html on line 136