22#include "anch-network-export.hpp"
27#include "network/socket.hpp"
28#include "network/tcpStream.hpp"
60 TcpServer(
const std::string& host, uint16_t port,
int backlog = SOMAXCONN);
Socket address (IPv4 or IPv6 address and port).
Definition address.hpp:54
Network socket (POSIX).
Definition socket.hpp:63
anch::network::Socket & getSocket() noexcept
anch::network::TcpStream accept(std::size_t bufSize=anch::network::TcpStream::DEFAULT_BUFFER_SIZE)
anch::network::Address getAddress() const
TcpServer(const std::string &host, uint16_t port, int backlog=SOMAXCONN)
anch::network::Socket acceptSocket(anch::network::Address *peer=NULL)
TCP connection as a std::iostream.
Definition tcpStream.hpp:59
static constexpr std::size_t DEFAULT_BUFFER_SIZE
Definition tcpStream.hpp:64
Network namespace.
Definition address.hpp:30