async_mqtt 5.0.0
Loading...
Searching...
No Matches
async_mqtt::v5::auth_packet Class Reference

MQTT AUTH packet (v35) More...

#include <v5_auth.hpp>

Public Member Functions

 auth_packet (auth_reason_code reason_code, properties props)
 constructor
 
 auth_packet ()
 constructor
 
 auth_packet (auth_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.
 
auth_reason_code code () const
 
properties constprops () const
 

Detailed Description

MQTT AUTH packet (v35)

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

Constructor & Destructor Documentation

◆ auth_packet() [1/2]

async_mqtt::v5::auth_packet::auth_packet ( auth_reason_code reason_code,
properties props )
inline

◆ auth_packet() [2/2]

async_mqtt::v5::auth_packet::auth_packet ( auth_reason_code reason_code)
inline

constructor

Parameters
reason_codeauth_reason_code
See https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901220

Member Function Documentation

◆ code()

auth_reason_code async_mqtt::v5::auth_packet::code ( ) const
inline

@breif Get reason code

Returns
reason_code

◆ const_buffer_sequence()

std::vector< as::const_buffer > async_mqtt::v5::auth_packet::const_buffer_sequence ( ) const
inline

Create const buffer sequence it is for boost asio APIs.

Returns
const buffer sequence

◆ num_of_const_buffer_sequence()

std::size_t async_mqtt::v5::auth_packet::num_of_const_buffer_sequence ( ) const
inline

Get number of element of const_buffer_sequence.

Returns
number of element of const_buffer_sequence

◆ props()

properties const & async_mqtt::v5::auth_packet::props ( ) const
inline

@breif Get properties

Returns
properties

◆ size()

std::size_t async_mqtt::v5::auth_packet::size ( ) const
inline

Get packet size.

Returns
packet size

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