E-MailRelay
|
Wrappers for sendmsg() and recvmsg(). More...
#include <gmsg.h>
Static Public Member Functions | |
static ssize_t | send (SOCKET, const void *, std::size_t, int flags) noexcept |
A send() wrapper. More... | |
static ssize_t | sendto (SOCKET, const void *, std::size_t, int flags, const sockaddr *, socklen_t) noexcept |
A sendto() wrapper. More... | |
static ssize_t | sendto (SOCKET, const void *, std::size_t, int flags, const sockaddr *, socklen_t, int fd_to_send) |
A sendmsg() wrapper. Not always implemented. More... | |
static ssize_t | sendto (SOCKET, const std::vector< std::string_view > &, int flags, const sockaddr *, socklen_t) |
A sendto() wrapper with scatter-gather data chunks. Not always implemented. More... | |
static ssize_t | recv (SOCKET, void *, std::size_t, int flags) noexcept |
A recv() wrapper. More... | |
static ssize_t | recvfrom (SOCKET, void *, std::size_t, int, sockaddr *, socklen_t *) noexcept |
A recvfrom() wrapper. More... | |
static ssize_t | recvfrom (SOCKET, void *, std::size_t, int, sockaddr *, socklen_t *, int *fd_received_p) |
A recvmsg() wrapper. More... | |
static bool | fatal (int error) noexcept |
Returns true if the error value indicates a permanent problem with the socket. More... | |
Wrappers for sendmsg() and recvmsg().
These are near drop-in replacements for send()/sendto() and recv()/recvto(), but with SIGPIPE disabled and optional file-descriptor-passing capabilities.
|
staticnoexcept |
Returns true if the error value indicates a permanent problem with the socket.
Definition at line 50 of file gmsg_mac.cpp.
|
staticnoexcept |
A recv() wrapper.
Definition at line 39 of file gmsg_mac.cpp.
|
staticnoexcept |
A recvfrom() wrapper.
Definition at line 44 of file gmsg_mac.cpp.
|
static |
A recvmsg() wrapper.
The address and file descriptor pointers can be null independently. Not always implemented.
NOLINT
Definition at line 153 of file gmsg_unix.cpp.
|
staticnoexcept |
A send() wrapper.
Definition at line 27 of file gmsg_mac.cpp.
|
static |
A sendto() wrapper with scatter-gather data chunks. Not always implemented.
Definition at line 61 of file gmsg_unix.cpp.
|
staticnoexcept |
A sendto() wrapper.
Definition at line 32 of file gmsg_mac.cpp.
|
static |
A sendmsg() wrapper. Not always implemented.
Definition at line 92 of file gmsg_unix.cpp.