#include <response_options.h>
The response options for asynchronous calls targeted at delivery. Each of these objects is tied to a specific delivery_token.
◆ delivery_response_options() [1/2]
mqtt::delivery_response_options::delivery_response_options |
( |
int |
mqttVersion = MQTTVERSION_DEFAULT | ) |
|
Create an empty delivery response object.
◆ delivery_response_options() [2/2]
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.
- Parameters
-
dtok | A delivery token to be used as the context. |
mqttVersion | The MQTT version for the response |
◆ set_token()
Expose the underlying C struct for the unit tests. Sets the callback context to a delivery token.
- Parameters
-
dtok | The delivery token to be used as the callback context. |
◆ async_client
The client has special access
The documentation for this class was generated from the following file: