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.
LoggerType represents an
object type that will be used by the to log events.
mqtt_client
A type satisfies the LoggerType
concept if it defines any number (including zero)
of the following functions:
|
Function signature |
Arguments |
Description |
|---|---|---|
|
|
|
Invoked when the resolve operation is complete. |
|
|
|
Invoked when the TCP connect operation is complete. |
|
|
|
Invoked when the TLS handshake operation is complete. |
|
|
|
Invoked when the WebSocket handshake operation is complete. |
|
|
|
Invoked when the |
|
|
|
Invoked when the |
|
|
|
Invoked when a read or write operation on the underlying StreamType stream fails, triggering a reconnection to the broker. |
For example, a type T that
defines at_connack and at_disconnect functions with their respective
arguments is considered a valid LoggerType.
This allows you to create your own LoggerType
classes with functions of interest.
All defined functions are invoked directly within the using its
default executor. If the mqtt_client is initialized
with an explicit or implicit strand, none of the functions will be invoked
concurrently.
mqtt_client
![]() |
Warning |
|---|---|
Defined functions should not block and stop the |
A class that satifies this concept is logger.