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

Method start_receive

example/cpp11/tutorial/daytime6/server.cpp:38–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36
37private:
38 void start_receive()
39 {
40 socket_.async_receive_from(
41 boost::asio::buffer(recv_buffer_), remote_endpoint_,
42 std::bind(&udp_server::handle_receive, this,
43 boost::asio::placeholders::error,
44 boost::asio::placeholders::bytes_transferred));
45 }
46
47 void handle_receive(const boost::system::error_code& error,
48 std::size_t /*bytes_transferred*/)

Callers

nothing calls this directly

Calls 3

bufferFunction · 0.85
bindFunction · 0.50
async_receive_fromMethod · 0.45

Tested by

no test coverage detected