== cobalt/io/acceptor.hpp The acceptor can be used to accept a connection. [source,cpp] ---- struct acceptor { using wait_type = asio::socket_base::wait_type; constexpr static std::size_t max_listen_connections = asio::socket_base::max_listen_connections; acceptor(const cobalt::executor & executor = this_thread::get_executor()); acceptor(endpoint ep, const cobalt::executor & executor = this_thread::get_executor()); system::result bind(endpoint ep); system::result listen(int backlog = max_listen_connections); // int backlog = net::max_backlog() endpoint local_endpoint(); // accept any connection and assign it to `sock` accept_op accept(socket & sock); // Accept a connection of a stream_socket template accept_op accept(static_protocol stream_proto = tcp); // Accept a connection of a seq_packet template accept_op accept(static_protocol stream_proto = tcp); // For a connection to be ready wait_op wait(wait_type wt = wait_type::wait_read); }; ----