| 122 | } |
| 123 | |
| 124 | void write(std::size_t length) |
| 125 | { |
| 126 | boost::asio::async_write(socket_, boost::asio::buffer(data_, length), |
| 127 | [this](boost::system::error_code ec, std::size_t /*length*/) |
| 128 | { |
| 129 | if (!ec) |
| 130 | read(); |
| 131 | }); |
| 132 | } |
| 133 | |
| 134 | boost::asio::io_context& io_context_; |
| 135 | boost::asio::signal_set signal_; |
no test coverage detected