|
VideoTools
|
Wrappers for sendmsg() and recvmsg() that are near drop-in replacements for send()/sendto() and recv()/recvto(), but with SIGPIPE disabled and optional file-descriptor-passing capabilities. More...
#include <gmsg.h>
Static Public Member Functions | |
| 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 | recv (int, void *, size_t, int, int *fd_received_p=nullptr) |
| A recv() replacement using recvmsg(). | |
| static ssize_t | recvfrom (int, void *, size_t, int, sockaddr *, socklen_t *, int *fd_received_p=nullptr) |
| A recvfrom() replacement using recvmsg(). | |
| static bool | fatal (int error) |
| Returns true if the error value indicates a permanent problem with the socket. More... | |
Wrappers for sendmsg() and recvmsg() that are near drop-in replacements for send()/sendto() and recv()/recvto(), but with SIGPIPE disabled and optional file-descriptor-passing capabilities.
|
static |