async_mqtt 9.0.1
|
MQTT PUBREL packet (v5) More...
#include <v5_pubrel.hpp>
Public Member Functions | |
basic_pubrel_packet (typename basic_packet_id_type< PacketIdBytes >::type packet_id, pubrel_reason_code reason_code, properties props) | |
constructor | |
basic_pubrel_packet (typename basic_packet_id_type< PacketIdBytes >::type packet_id) | |
constructor | |
basic_pubrel_packet (typename basic_packet_id_type< PacketIdBytes >::type packet_id, pubrel_reason_code reason_code) | |
constructor | |
std::vector< as::const_buffer > | const_buffer_sequence () const |
Create const buffer sequence it is for boost asio APIs. | |
std::size_t | size () const |
Get packet size. | |
std::size_t | num_of_const_buffer_sequence () const |
Get number of element of const_buffer_sequence. | |
basic_packet_id_type< PacketIdBytes >::type | packet_id () const |
Get packet_id. | |
pubrel_reason_code | code () const |
Get reason code. | |
properties const & | props () const |
Get properties. | |
Static Public Member Functions | |
static constexpr control_packet_type | type () |
Get MQTT control packet type. | |
Friends | |
std::ostream & | operator<< (std::ostream &o, basic_pubrel_packet< PacketIdBytes > const &v) |
stream output operator | |
Related Symbols | |
(Note that these are not member symbols.) | |
using | pubrel_packet = basic_pubrel_packet<2> |
Type alias of basic_pubrel_packet (PacketIdBytes=2). | |
template<std::size_t PacketIdBytes> | |
bool | operator< (basic_pubrel_packet< PacketIdBytes > const &lhs, basic_pubrel_packet< PacketIdBytes > const &rhs) |
less than operator | |
template<std::size_t PacketIdBytes> | |
bool | operator== (basic_pubrel_packet< PacketIdBytes > const &lhs, basic_pubrel_packet< PacketIdBytes > const &rhs) |
equal operator | |
MQTT PUBREL packet (v5)
PacketIdBytes | size of packet_id |
If basic_endpoint::set_auto_pub_response() is called with true, then this packet is automatically sent when PUBREC v5::basic_pubrec_packet is received. If both the client and the broker keeping the session, this packet is stored in the endpoint for resending if disconnect/reconnect happens. If the session doesn' exist or lost, then the stored packets are erased.
See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901141
|
explicit |
constructor
packet_id | MQTT PacketIdentifier that is corresponding to the PUBREC packet |
reason_code | PubrelReasonCode See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901144 |
props | properties. See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901145 |
|
explicit |
constructor
packet_id | MQTT PacketIdentifier that is corresponding to the PUBREC packet |
|
explicit |
constructor
packet_id | MQTT PacketIdentifier that is corresponding to the PUBREC packet |
reason_code | PubrelReasonCode See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901144 |
pubrel_reason_code async_mqtt::v5::basic_pubrel_packet< PacketIdBytes >::code | ( | ) | const |
Get reason code.
std::vector< as::const_buffer > async_mqtt::v5::basic_pubrel_packet< PacketIdBytes >::const_buffer_sequence | ( | ) | const |
Create const buffer sequence it is for boost asio APIs.
std::size_t async_mqtt::v5::basic_pubrel_packet< PacketIdBytes >::num_of_const_buffer_sequence | ( | ) | const |
Get number of element of const_buffer_sequence.
basic_packet_id_type< PacketIdBytes >::type async_mqtt::v5::basic_pubrel_packet< PacketIdBytes >::packet_id | ( | ) | const |
Get packet_id.
properties const & async_mqtt::v5::basic_pubrel_packet< PacketIdBytes >::props | ( | ) | const |
Get properties.
std::size_t async_mqtt::v5::basic_pubrel_packet< PacketIdBytes >::size | ( | ) | const |
Get packet size.
|
inlinestaticconstexpr |
Get MQTT control packet type.
|
related |
less than operator
lhs | compare target |
rhs | compare target |
|
friend |
stream output operator
o | output stream |
v | target |
|
related |
equal operator
lhs | compare target |
rhs | compare target |