accept a connection on a socket (via a SOCKS server)
#include <sys/types.h> #include <sys/socket.h> int Raccept( int s, struct sockaddr *addr, int *addrlen );
The Raccept() function is a cover function for accept() - the difference is that Raccept() does its job via a SOCKS server.
For more information about SOCKS and its libraries, see Appendix A: SOCKS - A Basic Firewall.
A descriptor for the accepted socket. If an error occurs, -1 is returned and errno is set.
SOCKS
Safety: | |
---|---|
Interrupt handler | No |
Signal handler | No |
Thread | No |
accept(), Appendix A: SOCKS - A Basic Firewall