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

Method chat_client

example/cpp11/chat/chat_client.cpp:25–31  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23{
24public:
25 chat_client(boost::asio::io_context& io_context,
26 const tcp::resolver::results_type& endpoints)
27 : io_context_(io_context),
28 socket_(io_context)
29 {
30 do_connect(endpoints);
31 }
32
33 void write(const chat_message& msg)
34 {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected