Provides a mechanism for tracking the completion of an asynchronous action.
More...
#include <callback.h>
|
using | ptr_t = std::shared_ptr< callback > |
| Smart/shared pointer to an object of this type.
|
|
using | const_ptr_t = std::shared_ptr< const callback > |
| Smart/shared pointer to a const object of this type.
|
|
|
virtual | ~callback () |
| Virtual destructor.
|
|
virtual void | connected (const string &cause) |
| This method is called when the client is connected. More...
|
|
virtual void | connection_lost (const string &cause) |
| This method is called when the connection to the server is lost. More...
|
|
virtual void | message_arrived (const_message_ptr msg) |
| This method is called when a message arrives from the server. More...
|
|
virtual void | delivery_complete (delivery_token_ptr tok) |
| Called when delivery for a message has been completed, and all acknowledgments have been received. More...
|
|
Provides a mechanism for tracking the completion of an asynchronous action.
virtual void mqtt::callback::connected |
( |
const string & |
cause | ) |
|
|
inlinevirtual |
This method is called when the client is connected.
- Parameters
-
virtual void mqtt::callback::connection_lost |
( |
const string & |
cause | ) |
|
|
inlinevirtual |
This method is called when the connection to the server is lost.
- Parameters
-
virtual void mqtt::callback::delivery_complete |
( |
delivery_token_ptr |
tok | ) |
|
|
inlinevirtual |
Called when delivery for a message has been completed, and all acknowledgments have been received.
- Parameters
-
tok | The token tracking the message delivery. |
virtual void mqtt::callback::message_arrived |
( |
const_message_ptr |
msg | ) |
|
|
inlinevirtual |
This method is called when a message arrives from the server.
- Parameters
-
The documentation for this class was generated from the following file: