Raccept()

The Raccept() socket call accepts a connection request from a SOCKS server.

Syntax

#include <types.h>
#include <sys\socket.h>
#include <netinet\in.h>
int Raccept(s, name, namelen)
int s;
sockaddr *name;
int *namelen;

Parameters

s

name namelen

Description

This call is used to accept the first pending connection on the socket. If the socket was bound through a SOCKS server using Rbind(), it will block until the SOCKS server accepts a connection on its behalf. If the socket was not bound through a SOCKS server, this call is equivalent to accept().

Return Values

A non-negative socket descriptor indicates success; the value -1 indicates an error. You can get the specific error code by calling sock_errno() or psock_errno().

Error Code

SOCENOTSOCK SOCEFAULT SOCEINTR SOCEINVAL SOCENOBUFS SOCEOPNOTSUPP SOCEWOULDBLOCK SOCECONNABORTED

Related Calls


[Back: putshort()]
[Next: Rbind()]