MCPcopy Create free account
hub / github.com/boostorg/asio / start_accept

Method start_accept

example/cpp11/windows/transmit_file.cpp:124–132  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

122
123private:
124 void start_accept()
125 {
126 connection::pointer new_connection =
127 connection::create(acceptor_.get_executor().context(), filename_);
128
129 acceptor_.async_accept(new_connection->socket(),
130 std::bind(&server::handle_accept, this, new_connection,
131 boost::asio::placeholders::error));
132 }
133
134 void handle_accept(connection::pointer new_connection,
135 const boost::system::error_code& error)

Callers

nothing calls this directly

Calls 4

bindFunction · 0.50
contextMethod · 0.45
get_executorMethod · 0.45
async_acceptMethod · 0.45

Tested by

no test coverage detected