| 41 | } |
| 42 | |
| 43 | void start() |
| 44 | { |
| 45 | message_ = make_daytime_string(); |
| 46 | |
| 47 | boost::asio::async_write(socket_, boost::asio::buffer(message_), |
| 48 | std::bind(&tcp_connection::handle_write, shared_from_this(), |
| 49 | boost::asio::placeholders::error, |
| 50 | boost::asio::placeholders::bytes_transferred)); |
| 51 | } |
| 52 | |
| 53 | private: |
| 54 | tcp_connection(boost::asio::io_context& io_context) |
no test coverage detected