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/r/rconnect.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/r/rconnect.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/r/rconnect.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/r/rconnect.html on line 8
Initiate a connection on a socket (via a SOCKS server)
#include <sys/types.h>
#include <sys/socket.h>
int Rconnect( int s,
const struct sockaddr * name,
int namelen);
- s
- The descriptor of the socket on which to initiate the connection.
- name
- The name of the socket to connect to for a SOCK_STREAM
connection.
- namelen
- The length of the name, in bytes.
libsocks
Use the -l socks option to
qcc
to link against this library.
The Rconnect() function is a cover function for
connect() —
the difference is that Rconnect() does its job via
a SOCKS server.
For more information about SOCKS and its libraries, see the appendix,
SOCKS — A Basic Firewall.
- 0
- Success.
- -1
- An error occurred (errno is set).
SOCKS
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
connect()
Raccept(),
Rbind(),
Rgetsockname(),
Rlisten(),
Rrcmd(),
Rselect(),
SOCKSinit()
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/r/rconnect.html on line 145
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/r/rconnect.html on line 145