73 unsigned backlog = internal_::socket::max_pending_connections) noexcept {
74 listen(target, ec, backlog);
77 inline listener(
endpoint target,
unsigned backlog = internal_::socket::max_pending_connections) {
95 unsigned max_backlog = internal_::socket::max_pending_connections) noexcept;
106 #ifdef __cpp_exceptions
117 void listen(
endpoint target,
unsigned max_backlog = internal_::socket::max_pending_connections);
118 #endif // ifdef __cpp_exceptions
121 internal_::socket implementation;
Restricted wrapper for TCP listening socket.
listener(endpoint target, std::error_code &ec, unsigned backlog=internal_::socket::max_pending_connections) noexcept
Construct listener and start accepting connections.
listener() noexcept=default
Construct listener object.
listener(endpoint target, unsigned backlog=internal_::socket::max_pending_connections)
socket accept(std::error_code &ec) noexcept
Accept first connection from listener queue and create socket for it.
This file defines tcp::socket type, base class for outgoing TCP connections.
Descriptor wrapper for TCP socket.
void listen(endpoint target, std::error_code &ec, unsigned max_backlog=internal_::socket::max_pending_connections) noexcept
Start listening for incoming connections on specified endpoint.
listener & operator=(const listener &)=delete