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

Method start

example/cpp11/tutorial/daytime3/server.cpp:43–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
53private:
54 tcp_connection(boost::asio::io_context& io_context)

Callers 1

handle_acceptMethod · 0.45

Calls 4

async_writeFunction · 0.85
bufferFunction · 0.85
make_daytime_stringFunction · 0.70
bindFunction · 0.50

Tested by

no test coverage detected