| 119 | } |
| 120 | |
| 121 | void handle_receive(const boost::system::error_code& error) |
| 122 | { |
| 123 | if (!error) |
| 124 | { |
| 125 | std::shared_ptr<std::string> message( |
| 126 | new std::string(make_daytime_string())); |
| 127 | |
| 128 | socket_.async_send_to(boost::asio::buffer(*message), remote_endpoint_, |
| 129 | std::bind(&udp_server::handle_send, this, message)); |
| 130 | |
| 131 | start_receive(); |
| 132 | } |
| 133 | } |
| 134 | |
| 135 | void handle_send(std::shared_ptr<std::string> /*message*/) |
| 136 | { |
nothing calls this directly
no test coverage detected