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

Method do_read

example/cpp11/handler_tracking/async_tcp_echo_server.cpp:43–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls 2

bufferFunction · 0.85
async_read_someMethod · 0.45

Tested by

no test coverage detected