Aller au contenu
Bienvenue sur la nouvelle documentation de CppUtils !
explicit Server::Server( Socket::Domain domain = Socket::Domain::IPV4, Socket::Type type = Socket::Type::TCP);

[[nodiscard]] auto Server::bind(std::uint16_t port) const -> std::expected<void, std::error_code>;

[[nodiscard]] auto Server::listen(std::size_t waitingQueue = 10) -> std::expected<void, std::error_code>;

[[nodiscard]] auto Server::accept() -> std::expected<Socket, std::error_code>;