![]() |
paho-mqtt-cpp
MQTT C++ Client for POSIX and Windows
|
#include <callback.h>
Public Types | |
using | ptr_t = std::shared_ptr<callback> |
using | const_ptr_t = std::shared_ptr<const callback> |
Public Member Functions | |
virtual | ~callback () |
virtual void | connected (const string &) |
virtual void | connection_lost (const string &) |
virtual void | message_arrived (const_message_ptr) |
virtual void | delivery_complete (delivery_token_ptr) |
Provides a mechanism for tracking the completion of an asynchronous action.
using mqtt::callback::ptr_t = std::shared_ptr<callback> |
Smart/shared pointer to an object of this type
using mqtt::callback::const_ptr_t = std::shared_ptr<const callback> |
Smart/shared pointer to a const object of this type
|
inlinevirtual |
Virtual destructor.
|
inlinevirtual |
This method is called when the client is connected. Note that, in response to an initial connect(), the token from the connect call is also signaled with an on_success(). That occurs just before this is called.
|
inlinevirtual |
This method is called when the connection to the server is lost.
|
inlinevirtual |
This method is called when a message arrives from the server.
|
inlinevirtual |
Called when delivery for a message has been completed, and all acknowledgments have been received.