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
This version of Boost is under active development. You are currently in the master branch. The current version is 1.91.0.
Assign an authenticator that the Client will use
for Enhanced Authentication
on every connect to a Broker. Re-authentication can be initiated by calling
re_authenticate.
template<
typename Authenticator>
boost::mqtt5::mqtt_client&
authenticator(
Authenticator&& authenticator);
|
Name |
Description |
|---|---|
|
|
Object that will be stored (move-constructed or by reference) and used for authentication. It needs to satisfy Authenticator concept. |
This function takes action when the client is in a non-operational state,
meaning the async_run function has not been
invoked. Furthermore, you can use this function after the cancel function has been called,
before the async_run function is invoked
again.