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

Method stop

example/cpp20/coroutines/chat_server.cpp:161–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159 }
160
161 void stop()
162 {
163 room_.leave(shared_from_this());
164 socket_.close();
165 timer_.cancel();
166 }
167
168 tcp::socket socket_;
169 boost::asio::steady_timer timer_;

Callers 8

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls 3

leaveMethod · 0.45
closeMethod · 0.45
cancelMethod · 0.45

Tested by

no test coverage detected