Paho C++  1.0
The Paho MQTT C++ Client Library
 All Classes Files Functions Variables Typedefs Friends
mqtt::callback Class Reference

Provides a mechanism for tracking the completion of an asynchronous action. More...

#include <callback.h>

Inheritance diagram for mqtt::callback:
mqtt::client

Public Types

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.
 

Public Member Functions

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...
 

Detailed Description

Provides a mechanism for tracking the completion of an asynchronous action.

Member Function Documentation

virtual void mqtt::callback::connected ( const string &  cause)
inlinevirtual

This method is called when the client is connected.

Parameters
cause
virtual void mqtt::callback::connection_lost ( const string &  cause)
inlinevirtual

This method is called when the connection to the server is lost.

Parameters
cause
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
tokThe 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
msgThe message

The documentation for this class was generated from the following file: