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