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

Method close

example/cpp11/chat/chat_client.cpp:47–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45 }
46
47 void close()
48 {
49 boost::asio::post(io_context_, [this]() { socket_.close(); });
50 }
51
52private:
53 void do_connect(const tcp::resolver::results_type& endpoints)

Callers 15

stopMethod · 0.45
stopMethod · 0.45
stopMethod · 0.45
stopMethod · 0.45
do_await_stopMethod · 0.45
do_read_headerMethod · 0.45
do_read_bodyMethod · 0.45
do_writeMethod · 0.45
mainFunction · 0.45
use_file_implMethod · 0.45
acceptMethod · 0.45
initiateMethod · 0.45

Calls 1

postFunction · 0.50

Tested by 6

test_sync_operationsFunction · 0.36
test_async_operationsFunction · 0.36
test_sync_operationsFunction · 0.36
test_async_operationsFunction · 0.36
test_sync_operationsFunction · 0.36
test_async_operationsFunction · 0.36