Notify that third party library that it should perform its read operation.
| 38 | |
| 39 | // Notify that third party library that it should perform its read operation. |
| 40 | void do_read(boost::system::error_code& ec) |
| 41 | { |
| 42 | if (std::size_t len = socket_.read_some(boost::asio::buffer(data_), ec)) |
| 43 | { |
| 44 | write_buffer_ = boost::asio::buffer(data_, len); |
| 45 | state_ = writing; |
| 46 | } |
| 47 | } |
| 48 | |
| 49 | // Returns true if the third party library wants to be notified when the |
| 50 | // socket is ready for writing. |
no test coverage detected