Notify that third party library that it should perform its write operation.
| 55 | |
| 56 | // Notify that third party library that it should perform its write operation. |
| 57 | void do_write(boost::system::error_code& ec) |
| 58 | { |
| 59 | if (std::size_t len = socket_.write_some( |
| 60 | boost::asio::buffer(write_buffer_), ec)) |
| 61 | { |
| 62 | write_buffer_ = write_buffer_ + len; |
| 63 | state_ = boost::asio::buffer_size(write_buffer_) > 0 ? writing : reading; |
| 64 | } |
| 65 | } |
| 66 | |
| 67 | private: |
| 68 | tcp::socket& socket_; |
no test coverage detected