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

Method write

example/cpp11/chat/chat_client.cpp:33–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 }
32
33 void write(const chat_message& msg)
34 {
35 boost::asio::post(io_context_,
36 [this, msg]()
37 {
38 bool write_in_progress = !write_msgs_.empty();
39 write_msgs_.push_back(msg);
40 if (!write_in_progress)
41 {
42 do_write();
43 }
44 });
45 }
46
47 void close()
48 {

Callers 14

mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
do_read_bodyMethod · 0.45
mainFunction · 0.45
icmp_headerClass · 0.45
read_handlerFunction · 0.45
do_receiveMethod · 0.45

Calls 2

postFunction · 0.50
emptyMethod · 0.45

Tested by

no test coverage detected