The Rbind() call binds a local name to the socket.
Syntax
#include <types.h> #include <sys\socket.h> int Rbind(s, name, namelen remoteaddr) int s; struct sockaddr *name; int namelen; struct sockaddr *remoteaddr;
Parameters
s
Description
This call checks remoteaddr to see if it is reachable via a direct connection, or whether a connection through a SOCKS server is required. If the former, then this call is equivalent to a bind (s, name, namelen). If the latter, then a connection to the SOCKS server is established and a bind request is sent. Rgetsockname() may be called to retrieve the IP address and port number the SOCKS server assigned.
Related Calls
bind() htons()
inet_addr()
Rconnect()
Rgethostbyname()
Rgetsockname()
Rlisten()
sock_errno()
socket()