| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) | 
Get the name of a socket (via a SOCKS server)
#include <sys/socket.h>
int Rgetsockname( int s, 
                  struct sockaddr * name, 
                  int * namelen );
libsocks
Use the -l socks option to qcc to link against this library.
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.
| Safety: | |
|---|---|
| Cancellation point | No | 
| Interrupt handler | No | 
| Signal handler | No | 
| Thread | No | 
getsockname() Raccept(), Rbind(), Rconnect(), Rlisten(), Rrcmd(), Rselect(), SOCKSinit()
| ![[Previous]](../prev.gif) | ![[Contents]](../contents.gif) | ![[Index]](../keyword_index.gif) | ![[Next]](../next.gif) |