| 133 | } |
| 134 | |
| 135 | void do_write_message() |
| 136 | { |
| 137 | boost::asio::async_write(socket_, |
| 138 | boost::asio::buffer(write_msg_.data(), write_msg_.length()), |
| 139 | [this](boost::system::error_code ec, std::size_t /*length*/) |
| 140 | { |
| 141 | if (!ec) |
| 142 | { |
| 143 | do_read_input(); |
| 144 | } |
| 145 | else |
| 146 | { |
| 147 | close(); |
| 148 | } |
| 149 | }); |
| 150 | } |
| 151 | |
| 152 | void close() |
| 153 | { |
nothing calls this directly
no test coverage detected