Boost
C++ Libraries
...one of the most highly
regarded and expertly designed C++ library projects in the
world.
— Herb Sutter and Andrei
Alexandrescu, C++
Coding Standards
Constructs a connection object from an executor and an optional set of parameters.
any_connection(
boost::asio::any_io_executor ex,
any_connection_params params = {});
The resulting connection has this->get_executor() == ex. Any internally required I/O objects
will be constructed using this executor.
You can configure extra parameters, like the SSL context and buffer sizes,
by passing an any_connection_params object
to this constructor.