![]() |
PahoMqttCpp
MQTT C++ Client for POSIX and Windows
|
#include <disconnect_options.h>
Public Types | |
| using | self = disconnect_options_builder |
Public Member Functions | |
| disconnect_options_builder () | |
| auto | properties (mqtt::properties &&props) -> self & |
| auto | properties (const mqtt::properties &props) -> self & |
| template<class Rep , class Period > | |
| auto | timeout (const std::chrono::duration< Rep, Period > &to) -> self & |
| auto | reason_code (ReasonCode code) -> self & |
| disconnect_options | finalize () |
Static Public Member Functions | |
| static disconnect_options_builder | v3 () |
| static disconnect_options_builder | v5 () |
Class to build connect options.
This class
|
inline |
Default constructor.
|
inlinestatic |
Creates default options builder for an MQTT v3.x connection.
|
inlinestatic |
Creates default options builder for an MQTT v5 connection.
|
inline |
Sets the properties for the disconnect message.
| props | The properties for the disconnect message. |
|
inline |
Sets the properties for the disconnect message.
| props | The properties for the disconnect message. |
|
inline |
Sets the disconnect connect timeout. This allows for any remaining in-flight messages to be delivered.
| to | The disconnect timeout. |
|
inline |
Sets the reason code for the disconnect.
| code | The reason code for the disconnect. |
|
inline |
Finish building the options and return them.