Rgetsockname() gets the socket name from the SOCKS server.
Syntax
#include <types.h> #include <sys\socket.h> int Rgetsockname(s, name, namelen) int s; struct sockaddr *name; int *namelen;
Parameters
s
Description
This call returns the name the SOCKS server bound to the socket after a successful call to Rbind() or connect(). If the socket is not connected through a SOCKS server, this call is equivalent to getsockname().
Return Values
The value 0 indicates success; the value -1 indicates an error. You can get the specific error code by calling sock_errno() or psock_errno().
Error Code
Related Calls