Constructs a Client with given parameters.
template < typenameExecutionContext, std::enable_if_t< std::is_convertible_v<ExecutionContext&, asio::execution_context & >, bool > = true > mqtt_client(ExecutionContext& context, tls_context_type tls_context = {}, logger_type logger = {} );
|
Name |
Description |
|---|---|
|
Type of a concrete execution context. |
|
Name |
Description |
|---|---|
|
context |
Execution context whose executor will be associated with the Client. |
|
tls_context |
A context object used in TLS/SSL connection. |
|
logger |
An object satisfying the |
std::is_convertible_v<ExecutionContext&, asio::execution_context&>