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

Method do_read

example/cpp11/ssl/server.cpp:46–57  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

44 }
45
46 void do_read()
47 {
48 auto self(shared_from_this());
49 socket_.async_read_some(boost::asio::buffer(data_),
50 [this, self](const boost::system::error_code& ec, std::size_t length)
51 {
52 if (!ec)
53 {
54 do_write(length);
55 }
56 });
57 }
58
59 void do_write(std::size_t length)
60 {

Callers

nothing calls this directly

Calls 2

bufferFunction · 0.85
async_read_someMethod · 0.45

Tested by

no test coverage detected