async_mqtt 5.0.0
|
MQTT packet variant for store. More...
#include <store_packet_variant.hpp>
Public Member Functions | |
basic_store_packet_variant (v3_1_1::basic_publish_packet< PacketIdBytes > packet) | |
constructor | |
basic_store_packet_variant (v3_1_1::basic_pubrel_packet< PacketIdBytes > packet) | |
constructor | |
basic_store_packet_variant (v5::basic_publish_packet< PacketIdBytes > packet) | |
constructor | |
basic_store_packet_variant (v5::basic_pubrel_packet< PacketIdBytes > packet) | |
constructor | |
template<typename Func > | |
auto | visit (Func &&func) const & |
visit to variant | |
template<typename Func > | |
auto | visit (Func &&func) & |
visit to variant | |
template<typename Func > | |
auto | visit (Func &&func) && |
visit to variant | |
std::vector< as::const_buffer > | const_buffer_sequence () const |
Create const buffer sequence it is for boost asio APIs. | |
packet_id_t | packet_id () const |
Get packet id. | |
std::size_t | size () const |
Get packet size. | |
std::uint32_t | get_message_expiry_interval () const |
void | update_message_expiry_interval (std::uint32_t val) const |
response_packet | response_packet_type () const |
Get response packet type corresponding to this packet. | |
MQTT packet variant for store.
PacketIdBytes | MQTT spec is 2. You can use store_packet_variant for that. |
|
inline |
constructor
packet | PUBLISH packet QoS1 or 2 |
|
inline |
constructor
packet | PUBREL packet |
|
inline |
constructor
packet | PUBLISH packet QoS1 or 2 |
|
inline |
constructor
packet | PUBREL packet |
|
inline |
Create const buffer sequence it is for boost asio APIs.
|
inline |
@breif Get MessageExpiryInterval property value
|
inline |
Get packet id.
|
inline |
Get response packet type corresponding to this packet.
|
inline |
Get packet size.
|
inline |
@breif Update MessageExpiryInterval property
val | message_expiry_interval |
|
inline |
visit to variant
func | Visitor function |
|
inline |
visit to variant
func | Visitor function |
|
inline |
visit to variant
func | Visitor function |