async_mqtt 9.0.1
Loading...
Searching...
No Matches
async_mqtt::v5::basic_unsuback_packet< PacketIdBytes > Class Template Reference

MQTT UNSUBACK packet (v5) More...

#include <v5_unsuback.hpp>

Public Member Functions

 basic_unsuback_packet (typename basic_packet_id_type< PacketIdBytes >::type packet_id, std::vector< unsuback_reason_code > params, properties props={})
 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.
 
std::vector< unsuback_reason_code > const & entries () const
 Get entries.
 
properties const & props () const
 Get properties.
 

Static Public Member Functions

static constexpr control_packet_type type ()
 Get MQTT control packet type.
 

Related Symbols

(Note that these are not member symbols.)

using unsuback_packet = basic_unsuback_packet<2>
 Type alias of basic_unsuback_packet (PacketIdBytes=2).
 
template<std::size_t PacketIdBytes>
bool operator< (basic_unsuback_packet< PacketIdBytes > const &lhs, basic_unsuback_packet< PacketIdBytes > const &rhs)
 less than operator
 
template<std::size_t PacketIdBytes>
bool operator== (basic_unsuback_packet< PacketIdBytes > const &lhs, basic_unsuback_packet< PacketIdBytes > const &rhs)
 equal operator
 
template<std::size_t PacketIdBytes>
std::ostream & operator<< (std::ostream &o, basic_unsuback_packet< PacketIdBytes > const &v)
 stream output operator
 

Detailed Description

template<std::size_t PacketIdBytes>
class async_mqtt::v5::basic_unsuback_packet< PacketIdBytes >

MQTT UNSUBACK packet (v5)

Template Parameters
PacketIdBytessize of packet_id

MQTT UNSUBACK packet.
See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901187

Thread Safety

  • Distinct objects: Safe
  • Shared objects: Unsafe

Requirements

Constructor & Destructor Documentation

◆ basic_unsuback_packet()

template<std::size_t PacketIdBytes>
async_mqtt::v5::basic_unsuback_packet< PacketIdBytes >::basic_unsuback_packet ( typename basic_packet_id_type< PacketIdBytes >::type packet_id,
std::vector< unsuback_reason_code > params,
properties props = {} )
explicit

constructor

Parameters
packet_idMQTT PacketIdentifier that is corresponding to the UNSUBSCRIBE packet
paramsunsuback entries.
propsproperties.
See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901187

Member Function Documentation

◆ const_buffer_sequence()

template<std::size_t PacketIdBytes>
std::vector< as::const_buffer > async_mqtt::v5::basic_unsuback_packet< PacketIdBytes >::const_buffer_sequence ( ) const

Create const buffer sequence it is for boost asio APIs.

Returns
const buffer sequence

◆ entries()

template<std::size_t PacketIdBytes>
std::vector< unsuback_reason_code > const & async_mqtt::v5::basic_unsuback_packet< PacketIdBytes >::entries ( ) const

Get entries.

Returns
entries

◆ num_of_const_buffer_sequence()

template<std::size_t PacketIdBytes>
std::size_t async_mqtt::v5::basic_unsuback_packet< PacketIdBytes >::num_of_const_buffer_sequence ( ) const

Get number of element of const_buffer_sequence.

Returns
number of element of const_buffer_sequence

◆ packet_id()

template<std::size_t PacketIdBytes>
basic_packet_id_type< PacketIdBytes >::type async_mqtt::v5::basic_unsuback_packet< PacketIdBytes >::packet_id ( ) const

Get packet_id.

Returns
packet_id

◆ props()

template<std::size_t PacketIdBytes>
properties const & async_mqtt::v5::basic_unsuback_packet< PacketIdBytes >::props ( ) const

Get properties.

Returns
properties

◆ size()

template<std::size_t PacketIdBytes>
std::size_t async_mqtt::v5::basic_unsuback_packet< PacketIdBytes >::size ( ) const

Get packet size.

Returns
packet size

◆ type()

template<std::size_t PacketIdBytes>
static constexpr control_packet_type async_mqtt::v5::basic_unsuback_packet< PacketIdBytes >::type ( )
inlinestaticconstexpr

Get MQTT control packet type.

Returns
control packet type

Friends And Related Symbol Documentation

◆ operator<()

template<std::size_t PacketIdBytes>
bool operator< ( basic_unsuback_packet< PacketIdBytes > const & lhs,
basic_unsuback_packet< PacketIdBytes > const & rhs )
related

less than operator

Parameters
lhscompare target
rhscompare target
Returns
true if the lhs less than the rhs, otherwise false.

Requirements

◆ operator<<()

template<std::size_t PacketIdBytes>
std::ostream & operator<< ( std::ostream & o,
basic_unsuback_packet< PacketIdBytes > const & v )
related

stream output operator

Parameters
ooutput stream
vtarget
Returns
output stream

Requirements

◆ operator==()

template<std::size_t PacketIdBytes>
bool operator== ( basic_unsuback_packet< PacketIdBytes > const & lhs,
basic_unsuback_packet< PacketIdBytes > const & rhs )
related

equal operator

Parameters
lhscompare target
rhscompare target
Returns
true if the lhs equal to the rhs, otherwise false.

Requirements


The documentation for this class was generated from the following files: