async_mqtt 9.0.1
|
Topics | |
protocol version 3.1.1 | |
protocol version 5.0 | |
implementation class | |
variant class for all packets | |
Classes | |
struct | async_mqtt::basic_packet_id_type< PacketIdBytes > |
packet idenfitifer type class template More... | |
class | async_mqtt::topic_sharename |
topic and sharename More... | |
class | async_mqtt::topic_subopts |
subsscription entry More... | |
Typedefs | |
using | async_mqtt::packet_id_type = typename basic_packet_id_type<2>::type |
packet idenfitifer type | |
template<template< typename... > typename Container, typename Buffer > | |
using | async_mqtt::packet_iterator = as::buffers_iterator<Container<Buffer>> |
iterator type of buffer sequence | |
Enumerations | |
enum class | async_mqtt::control_packet_type : std::uint8_t { control_packet_type::connect = 0b00010000 , control_packet_type::connack = 0b00100000 , control_packet_type::publish = 0b00110000 , control_packet_type::puback = 0b01000000 , control_packet_type::pubrec = 0b01010000 , control_packet_type::pubrel = 0b01100000 , control_packet_type::pubcomp = 0b01110000 , control_packet_type::subscribe = 0b10000000 , control_packet_type::suback = 0b10010000 , control_packet_type::unsubscribe = 0b10100000 , control_packet_type::unsuback = 0b10110000 , control_packet_type::pingreq = 0b11000000 , control_packet_type::pingresp = 0b11010000 , control_packet_type::disconnect = 0b11100000 , control_packet_type::auth = 0b11110000 } |
MQTT control packet type. More... | |
Functions | |
constexpr char const * | async_mqtt::control_packet_type_to_str (control_packet_type v) |
stringize control_packet_type | |
std::ostream & | async_mqtt::operator<< (std::ostream &o, control_packet_type v) |
output to the stream | |
template<typename Packet > | |
hex_dump_t< Packet > | async_mqtt::hex_dump (Packet const &p) |
hexdump the packet. Usage. std::cout << hex_dump(p) << std::endl; | |
template<template< typename... > typename Container, typename Buffer > | |
std::pair< packet_iterator< Container, Buffer >, packet_iterator< Container, Buffer > > | async_mqtt::make_packet_range (Container< Buffer > const &cbs) |
create packet iterator range | |
template<template< typename... > typename Container, typename Buffer > | |
std::string | async_mqtt::to_string (Container< Buffer > const &cbs) |
convert buffer sequence to the string | |
using async_mqtt::packet_id_type = typename basic_packet_id_type<2>::type |
packet idenfitifer type
using async_mqtt::packet_iterator = as::buffers_iterator<Container<Buffer>> |
iterator type of buffer sequence
|
strong |
MQTT control packet type.
|
constexpr |
stringize control_packet_type
v | target |
hex_dump_t< Packet > async_mqtt::hex_dump | ( | Packet const & | p | ) |
hexdump the packet. Usage. std::cout << hex_dump(p) << std::endl;
p | packet to dump. p must be valid packet. packet_variant system_error cannot be accepted. |
std::pair< packet_iterator< Container, Buffer >, packet_iterator< Container, Buffer > > async_mqtt::make_packet_range | ( | Container< Buffer > const & | cbs | ) |
create packet iterator range
cbs | collection of th buffer |
|
inline |
output to the stream
o | output stream |
v | target |
std::string async_mqtt::to_string | ( | Container< Buffer > const & | cbs | ) |
convert buffer sequence to the string
cbs | collection of th buffer |