async_mqtt 9.0.1
|
MQTT PUBREC packet (v5) More...
#include <v5_pubrec.hpp>
Public Member Functions | |
basic_pubrec_packet (typename basic_packet_id_type< PacketIdBytes >::type packet_id, pubrec_reason_code reason_code, properties props) | |
constructor | |
basic_pubrec_packet (typename basic_packet_id_type< PacketIdBytes >::type packet_id) | |
constructor | |
basic_pubrec_packet (typename basic_packet_id_type< PacketIdBytes >::type packet_id, pubrec_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. | |
pubrec_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_pubrec_packet< PacketIdBytes > const &v) |
stream output operator | |
Related Symbols | |
(Note that these are not member symbols.) | |
using | pubrec_packet = basic_pubrec_packet<2> |
Type alias of basic_pubrec_packet (PacketIdBytes=2). | |
template<std::size_t PacketIdBytes> | |
bool | operator< (basic_pubrec_packet< PacketIdBytes > const &lhs, basic_pubrec_packet< PacketIdBytes > const &rhs) |
less than operator | |
template<std::size_t PacketIdBytes> | |
bool | operator== (basic_pubrec_packet< PacketIdBytes > const &lhs, basic_pubrec_packet< PacketIdBytes > const &rhs) |
equal operator | |
MQTT PUBREC 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 PUBLISH (QoS2) v5::basic_publish_packet is received.
When the packet is received with error reason_code, the packet_id is automatically released and become reusable.
See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901131
|
explicit |
constructor
packet_id | MQTT PacketIdentifier that is corresponding to the PUBLISH(QoS2) packet |
reason_code | PubcompReasonCode See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901134 |
props | properties. See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901135 |
|
explicit |
constructor
packet_id | MQTT PacketIdentifier that is corresponding to the PUBLISH(QoS2) packet |
|
explicit |
constructor
packet_id | MQTT PacketIdentifier that is corresponding to the PUBLISH(QoS2) packet |
reason_code | PubcompReasonCode See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901134 |
pubrec_reason_code async_mqtt::v5::basic_pubrec_packet< PacketIdBytes >::code | ( | ) | const |
Get reason code.
std::vector< as::const_buffer > async_mqtt::v5::basic_pubrec_packet< PacketIdBytes >::const_buffer_sequence | ( | ) | const |
Create const buffer sequence it is for boost asio APIs.
std::size_t async_mqtt::v5::basic_pubrec_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_pubrec_packet< PacketIdBytes >::packet_id | ( | ) | const |
Get packet_id.
properties const & async_mqtt::v5::basic_pubrec_packet< PacketIdBytes >::props | ( | ) | const |
Get properties.
std::size_t async_mqtt::v5::basic_pubrec_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 |