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/rgetsockname.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/rgetsockname.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/rgetsockname.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/rgetsockname.html on line 8

Rgetsockname()

Get the name of a socket (via a SOCKS server)

Synopsis:

#include <sys/socket.h>

int Rgetsockname( int s, 
                  struct sockaddr * name, 
                  int * namelen );

Arguments:

s
The file descriptor of the socket whose name you want to get.
name
A pointer to a sockaddr object where the function can store the socket's name.
namelen
A pointer to a socklen_t object that initially indicates the amount of space pointed to by name. The function updates namelen to contain the actual size of the name (in bytes).

Library:

libsocks

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

Description:

The Rgetsockname() function is a cover function for getsockname() — the difference is that Rgetsockname() does its job via a SOCKS server.

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:

getsockname() Raccept(), Rbind(), Rconnect(), 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/rgetsockname.html on line 152

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/rgetsockname.html on line 152