async_mqtt 9.0.1
Loading...
Searching...
No Matches
variant class for all packets
Collaboration diagram for variant class for all packets:

Topics

 implementation class
 
 variant class for stored packets (PUBLISH, PUBREL)
 

Typedefs

using packet_variant = basic_packet_variant<2>
 type alias of basic_packet_variant (PacketIdBytes=2).
 

Functions

template<std::size_t PacketIdBytes>
basic_packet_variant< PacketIdBytes > async_mqtt::buffer_to_basic_packet_variant (buffer buf, protocol_version ver, error_code &ec)
 create basic_packet_variant from the buffer
 
packet_variant async_mqtt::buffer_to_packet_variant (buffer buf, protocol_version ver, error_code &ec)
 create packet_variant from the buffer
 

Detailed Description

Typedef Documentation

◆ packet_variant

template<std::size_t PacketIdBytes>
using packet_variant = basic_packet_variant<2>
related

type alias of basic_packet_variant (PacketIdBytes=2).

Requirements

Function Documentation

◆ buffer_to_basic_packet_variant()

template<std::size_t PacketIdBytes>
basic_packet_variant< PacketIdBytes > async_mqtt::buffer_to_basic_packet_variant ( buffer buf,
protocol_version ver,
error_code & ec )

create basic_packet_variant from the buffer

Parameters
bufbuffer contains packet bytes
verprotocol version to create packet
ecerror_code for reporting error
Returns
created basic_packet_variant

◆ buffer_to_packet_variant()

packet_variant async_mqtt::buffer_to_packet_variant ( buffer buf,
protocol_version ver,
error_code & ec )

create packet_variant from the buffer

Parameters
bufbuffer contains packet bytes
verprotocol version to create packet
ecerror_code for reporting error
Returns
created packet_variant