![]() |
PahoMqttCpp
MQTT C++ Client for POSIX and Windows
|
#include <response_options.h>
Public Member Functions | |
| delivery_response_options (int mqttVersion=MQTTVERSION_DEFAULT) | |
| delivery_response_options (const delivery_token_ptr &dtok, int mqttVersion=MQTTVERSION_DEFAULT) | |
| void | set_token (const delivery_token_ptr &dtok) |
Friends | |
| class | async_client |
The response options for asynchronous calls targeted at delivery. Each of these objects is tied to a specific delivery_token.
| mqtt::delivery_response_options::delivery_response_options | ( | int | mqttVersion = MQTTVERSION_DEFAULT | ) |
Create an empty delivery response object.
| mqtt::delivery_response_options::delivery_response_options | ( | const delivery_token_ptr & | dtok, |
| int | mqttVersion = MQTTVERSION_DEFAULT ) |
Creates a response object tied to the specific delivery token.
| dtok | A delivery token to be used as the context. |
| mqttVersion | The MQTT version for the response |
|
inline |
Expose the underlying C struct for the unit tests. Sets the callback context to a delivery token.
| dtok | The delivery token to be used as the callback context. |
|
friend |
The client has special access