 {
    message_ = make_daytime_string();

    boost::asio::async_write(socket_, boost::asio::buffer(message_),
        boost::bind(&amp;tcp_connection::handle_write, shared_from_this(),
          boost::asio::placeholders::error,
          boost::asio::placeholders::bytes_transferred));
  }

private:
  tcp_connection(boost::asio::io_context&amp; io_context)
    : socket_(io_context)
  {
  }

  void handle_write(const boost::system::error_code&amp; /*error*/,
      size_t /*bytes_transferred*/)
  {
  }

  tc