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