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/raccept.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/raccept.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/raccept.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/raccept.html on line 8
Accept a connection on a socket (via a SOCKS server)
#include <sys/types.h>
#include <sys/socket.h>
int Raccept( int s,
struct sockaddr * addr,
int * addrlen );
- s
- A socket that's been created with
socket().
- addr
- A result parameter that's filled in with the address of the connecting entity,
as known to the communications layer.
The exact format of the addr parameter is determined by
the domain in which the connection was made.
- addrlen
- A value-result parameter.
It should initially contain the amount of space pointed to by addr;
on return it contains the actual length (in bytes) of the address returned.
This call is used with connection-based socket types, currently with SOCK_STREAM.
libsocks
Use the -l socks option to
qcc
to link against this library.
The Raccept() function is a cover function for
accept() —
the difference is that Raccept() does its job via
a SOCKS server.
For more information about SOCKS and its libraries, see the appendix,
SOCKS — A Basic Firewall.
A descriptor for the accepted socket, or -1 if an error occurs (errno is set).
SOCKS
Safety: | |
Cancellation point |
No |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
accept(),
Rbind(),
Rconnect(),
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/raccept.html on line 142
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/raccept.html on line 142