MCPcopy Create free account
hub / github.com/boostorg/asio / handle_receive

Method handle_receive

example/cpp11/tutorial/daytime7/server.cpp:121–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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 {

Callers

nothing calls this directly

Calls 4

bufferFunction · 0.85
make_daytime_stringFunction · 0.70
bindFunction · 0.50
async_send_toMethod · 0.45

Tested by

no test coverage detected