Bind a name to a socket (via a SOCKS server)
#include <sys/types.h> #include <sys/socket.h> int Rbind( int s, const struct sockaddr * name, int namelen );
- The file descriptor to be bound.
- A pointer to the sockaddr structure that holds the address to be bound to the socket. The socket length and format depend upon its address family.
- The length of the sockaddr structure pointed to by name.
Use the -l socks option to qcc to link against this library.
The Rbind() function is a cover function for bind() -- the difference is that Rbind() does its job via a SOCKS server.
For more information about SOCKS and its libraries, see the appendix, SOCKS -- A Basic Firewall.
- An error occurred (errno is set).