| 34 | |
| 35 | private: |
| 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 | { |
nothing calls this directly
no test coverage detected