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

Method do_await_stop

example/cpp11/http/server/server.cpp:80–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78}
79
80void server::do_await_stop()
81{
82 signals_.async_wait(
83 [this](boost::system::error_code /*ec*/, int /*signo*/)
84 {
85 // The server is stopped by cancelling all outstanding asynchronous
86 // operations. Once all operations have finished the io_context::run()
87 // call will exit.
88 acceptor_.close();
89 connection_manager_.stop_all();
90 });
91}
92
93} // namespace server
94} // namespace http

Callers

nothing calls this directly

Calls 3

stop_allMethod · 0.80
async_waitMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected