Network namespace. More...
Classes | |
| class | Address |
| Socket address (IPv4 or IPv6 address and port). More... | |
| class | IOException |
| Network input/output error. More... | |
| class | Socket |
| Network socket (POSIX). More... | |
| struct | SocketHolder |
| Socket owner base class of TcpStream. More... | |
| class | TcpServer |
| TCP server: accept connections as TcpStream. More... | |
| class | TcpStream |
TCP connection as a std::iostream. More... | |
| class | UdpSocket |
| UDP socket. More... | |
Enumerations | |
| enum class | SocketType { TCP = SOCK_STREAM , UDP = SOCK_DGRAM } |
| enum class | Direction { RECEPTION = SHUT_RD , TRANSMISSION = SHUT_WR , BOTH = SHUT_RDWR } |
Functions | |
| const std::error_category & | addrinfoCategory () noexcept |
Network namespace.
Network sockets as C++ streams (POSIX only, IPv4 and IPv6):
std::iostream ;Errors are reported with anch::network::IOException (a std::system_error with the errno value).
|
strong |
Socket direction (for Socket::shutdown )
| Enumerator | |
|---|---|
| RECEPTION | Reception |
| TRANSMISSION | Transmission |
| BOTH | Reception and transmission |
|
strong |
Socket type
| Enumerator | |
|---|---|
| TCP | TCP socket ( |
| UDP | UDP socket ( |
|
noexcept |
getaddrinfo error category (messages from gai_strerror )