Rbind
![]() |
![]() |
![]() |
![]() |
Rbind()
Bind a name to a socket (via a SOCKS server)
Synopsis:
#include <sys/types.h>
#include <sys/socket.h>
int Rbind( int s,
const struct sockaddr * name,
int namelen );
Arguments:
- s
- The file descriptor to be bound.
- name
- 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.
- namelen
- The length of the sockaddr structure pointed to by name.
Library:
libsocks
Use the -l socks option to qcc to link against this library.
Description:
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.
Returns:
- 0
- Success.
- -1
- An error occurred (errno is set).
Classification:
| Safety: | |
|---|---|
| Cancellation point | No |
| Interrupt handler | No |
| Signal handler | No |
| Thread | No |
See also:
bind() Raccept(), Rconnect(), Rgetsockname(), Rlisten(), Rrcmd(), Rselect(), SOCKSinit()
![]() |
![]() |
![]() |
![]() |

![[Previous]](../prev.gif)
![[Contents]](../contents.gif)
![[Index]](../keyword_index.gif)
![[Next]](../next.gif)
