40 static ssize_t
send(
int ,
const void * ,
size_t ,
int ,
41 int fd_to_send = -1 ) ;
44 static ssize_t
sendto(
int ,
const void * ,
size_t ,
int ,
const sockaddr * , socklen_t ,
45 int fd_to_send = -1 ) ;
48 static ssize_t
recv(
int ,
void * ,
size_t ,
int ,
49 int * fd_received_p =
nullptr ) ;
52 static ssize_t
recvfrom(
int ,
void * ,
size_t ,
int , sockaddr * , socklen_t * ,
53 int * fd_received_p =
nullptr ) ;
56 static bool fatal(
int error ) ;
static ssize_t send(int, const void *, size_t, int, int fd_to_send=-1)
A send() replacement using sendmsg().
static ssize_t sendto(int, const void *, size_t, int, const sockaddr *, socklen_t, int fd_to_send=-1)
A sendto() replacement using sendmsg().
static ssize_t recvfrom(int, void *, size_t, int, sockaddr *, socklen_t *, int *fd_received_p=nullptr)
A recvfrom() replacement using recvmsg().
Wrappers for sendmsg() and recvmsg() that are near drop-in replacements for send()/sendto() and recv(...
static ssize_t recv(int, void *, size_t, int, int *fd_received_p=nullptr)
A recv() replacement using recvmsg().
static bool fatal(int error)
Returns true if the error value indicates a permanent problem with the socket.