socket.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define MSG_NOSIGNAL   0
 

Functions

int xaccept (int socketFd, struct sockaddr *sa, socklen_t *saLength)
 POSIX accept(2) equivalent. More...
 
int xbind (int socketFd, const struct sockaddr *sa, socklen_t saLength)
 POSIX bind(2) equivalent. More...
 
int xconnect (int socketFd, const struct sockaddr *sa, socklen_t saLength)
 POSIX connect(2) equivalent. More...
 
int xgetsockopt (int socketFd, int level, int optionName, void *optionValue, socklen_t *optionLength)
 POSIX getsockopt(2) equivalent. More...
 
int xgetsockname (int socketFd, struct sockaddr *sa, socklen_t *saLength)
 POSIX getsockname(2) equivalent. More...
 
int xlisten (int socketFd, int backlog)
 POSIX listen(2) equivalent. More...
 
ssize_t xrecv (int socketFd, void *buf, size_t bufLength, int flags)
 POSIX recv(2) equivalent. More...
 
ssize_t xrecvfrom (int socketFd, void *buf, size_t bufLength, int flags, struct sockaddr *from, socklen_t *fromLength)
 POSIX recvfrom(2) equivalent. More...
 
ssize_t xsend (int socketFd, const void *buf, size_t bufLength, int flags)
 POSIX send(2) equivalent. More...
 
ssize_t xsendto (int socketFd, const void *buf, size_t bufLength, int flags, const struct sockaddr *to, socklen_t toLength)
 POSIX sendto(2) equivalent. More...
 
int xsetsockopt (int socketFd, int level, int option, const void *value, socklen_t valueLength)
 POSIX setsockopt(2) equivalent. More...
 
int xsocket (int domain, int type, int protocol)
 POSIX socket(2) equivalent. More...
 

Macro Definition Documentation

◆ MSG_NOSIGNAL

#define MSG_NOSIGNAL   0

Definition at line 56 of file socket.h.

Function Documentation

◆ xaccept()

int xaccept ( int  socketFd,
struct sockaddr *  sa,
socklen_t saLength 
)
inline

Definition at line 62 of file socket.h.

Referenced by Comm::TcpAcceptor::acceptInto(), ipc_thread_1(), and ipcCreate().

◆ xbind()

int xbind ( int  socketFd,
const struct sockaddr *  sa,
socklen_t  saLength 
)
inline

Definition at line 68 of file socket.h.

Referenced by commBind(), and Ip::Intercept::ProbeForTproxy().

◆ xconnect()

int xconnect ( int  socketFd,
const struct sockaddr *  sa,
socklen_t  saLength 
)
inline

◆ xgetsockname()

int xgetsockname ( int  socketFd,
struct sockaddr *  sa,
socklen_t saLength 
)
inline

◆ xgetsockopt()

int xgetsockopt ( int  socketFd,
int  level,
int  optionName,
void *  optionValue,
socklen_t optionLength 
)
inline

◆ xlisten()

int xlisten ( int  socketFd,
int  backlog 
)
inline

Definition at line 86 of file socket.h.

Referenced by ipcCreate(), and Comm::TcpAcceptor::setListen().

◆ xrecv()

ssize_t xrecv ( int  socketFd,
void *  buf,
size_t  bufLength,
int  flags 
)
inline

Definition at line 98 of file socket.h.

Referenced by ipc_thread_1(), ipc_thread_2(), ipcCreate(), IcmpPinger::Open(), and IcmpPinger::Recv().

◆ xrecvfrom()

ssize_t xrecvfrom ( int  socketFd,
void *  buf,
size_t  bufLength,
int  flags,
struct sockaddr *  from,
socklen_t fromLength 
)
inline

Definition at line 104 of file socket.h.

Referenced by authenticate(), comm_udp_recvfrom(), Icmp6::Recv(), and Icmp4::Recv().

◆ xsend()

ssize_t xsend ( int  socketFd,
const void *  buf,
size_t  bufLength,
int  flags 
)
inline

◆ xsendto()

ssize_t xsendto ( int  socketFd,
const void *  buf,
size_t  bufLength,
int  flags,
const struct sockaddr *  to,
socklen_t  toLength 
)
inline

Definition at line 116 of file socket.h.

Referenced by comm_udp_sendto(), Icmp6::SendEcho(), and Icmp4::SendEcho().

◆ xsetsockopt()

◆ xsocket()

int xsocket ( int  domain,
int  type,
int  protocol 
)
inline

 

Introduction

Documentation

Support

Miscellaneous