![]() |
Home | Libraries | People | FAQ | More |
Constructs a Client with given parameters.
template< typename ExecutionContext, std::enable_if_t< std::is_convertible_v< ExecutionContext &, asio::execution_context & >, bool > = true> explicit mqtt_client( ExecutionContext& context, tls_context_type tls_context = {}, logger_type logger = {});
Type |
Description |
---|---|
Type of a concrete execution context. |
Name |
Description |
---|---|
|
Execution context whose executor will be associated with the Client. |
|
A context object used in TLS/SSL connection. |
|
An object satisfying the LoggerType concept used to log events within the Client. |
std::is_convertible_v<ExecutionContext&, asio::execution_context&>