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

Method do_read

example/cpp11/nonblocking/third_party_lib.cpp:40–47  ·  view source on GitHub ↗

Notify that third party library that it should perform its read operation.

Source from the content-addressed store, hash-verified

38
39 // Notify that third party library that it should perform its read operation.
40 void do_read(boost::system::error_code& ec)
41 {
42 if (std::size_t len = socket_.read_some(boost::asio::buffer(data_), ec))
43 {
44 write_buffer_ = boost::asio::buffer(data_, len);
45 state_ = writing;
46 }
47 }
48
49 // Returns true if the third party library wants to be notified when the
50 // socket is ready for writing.

Callers 1

do_operationsMethod · 0.45

Calls 2

bufferFunction · 0.85
read_someMethod · 0.45

Tested by

no test coverage detected