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

Method do_read

example/cpp11/local/stream_server.cpp:36–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

34
35private:
36 void do_read()
37 {
38 auto self(shared_from_this());
39 socket_.async_read_some(boost::asio::buffer(data_),
40 [this, self](boost::system::error_code ec, std::size_t length)
41 {
42 if (!ec)
43 do_write(length);
44 });
45 }
46
47 void do_write(std::size_t length)
48 {

Callers

nothing calls this directly

Calls 2

bufferFunction · 0.85
async_read_someMethod · 0.45

Tested by

no test coverage detected