This repository has been archived on 2025-03-26. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
mqttd/src/libmqttd/network/control_packet/variable_header.hpp
brenodetomini 5454051dfb fix: fixing Property mapping
Fixed UserProperty
Fixed Payload Properties
2024-02-02 13:46:45 -03:00

18 lines
464 B
C++

#ifndef INCLUDE_PACKET_INTERFACE_VARIABLE_HEADER_HPP_
#define INCLUDE_PACKET_INTERFACE_VARIABLE_HEADER_HPP_
#include <binary_data.hpp>
#include <property.hpp>
#include <utf8_string.hpp>
#include <variable_byte_int.hpp>
struct VariableHeader {
uint16_t packet_identifier = 0;
MQTTProperties properties;
uint byte_size = 0;
};
std::ostream &operator<<(std::ostream &os, const VariableHeader &value);
#endif // INCLUDE_PACKET_INTERFACE_VARIABLE_HEADER_HPP_