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

Method do_accept

example/cpp11/local/stream_server.cpp:76–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

74
75private:
76 void do_accept()
77 {
78 acceptor_.async_accept(
79 [this](boost::system::error_code ec, stream_protocol::socket socket)
80 {
81 if (!ec)
82 {
83 std::make_shared<session>(std::move(socket))->start();
84 }
85
86 do_accept();
87 });
88 }
89
90 stream_protocol::acceptor acceptor_;
91};

Callers

nothing calls this directly

Calls 2

async_acceptMethod · 0.45
startMethod · 0.45

Tested by

no test coverage detected