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

Method start

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

Source from the content-addressed store, hash-verified

43 }
44
45 void start()
46 {
47 message_ = make_daytime_string();
48
49 boost::asio::async_write(socket_, boost::asio::buffer(message_),
50 std::bind(&tcp_connection::handle_write, shared_from_this()));
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