kmMqtt 0.0.1
MQTT Client Library
Loading...
Searching...
No Matches
kmMqtt::mqtt::Publish Class Reference
Inheritance diagram for kmMqtt::mqtt::Publish:
kmMqtt::mqtt::BasePacket

Public Member Functions

PacketType getPacketType () const noexcept override
 Gets the packet type of the MQTT packet.
Public Member Functions inherited from kmMqtt::mqtt::BasePacket
EncodeResult encode ()
 Encodes the MQTT packet into a ByteBuffer.
DecodeResult decode ()
 Decodes the MQTT packet from the internal data buffer.
const FixedHeadergetFixedHeader () const
 Gets the fixed header of the MQTT packet.
const ByteBuffergetDataBuffer () const
 Gets the data buffer of the MQTT packet.
ByteBuffer && extractDataBuffer () noexcept
 Extracts the data buffer, transferring ownership to the caller.

Protected Member Functions

void onFixedHeaderDecoded () const override
 Callback invoked after the fixed header has been decoded.
Protected Member Functions inherited from kmMqtt::mqtt::BasePacket
std::size_t calculateFixedHeaderRemainingLength () const
 Calculates the remaining length for the fixed header based on other headers.
void addEncodeHeader (const IEncodeHeader *header)
 Adds an encode header to the packet.
void addDecodeHeader (IDecodeHeader *header)
 Adds a decode header to the packet.

Member Function Documentation

◆ getPacketType()

PacketType kmMqtt::mqtt::Publish::getPacketType ( ) const
overridevirtualnoexcept

Gets the packet type of the MQTT packet.

Returns
The PacketType enum value representing the packet type.

Implements kmMqtt::mqtt::BasePacket.

◆ onFixedHeaderDecoded()

void kmMqtt::mqtt::Publish::onFixedHeaderDecoded ( ) const
overrideprotectedvirtual

Callback invoked after the fixed header has been decoded.

Can be overridden by derived classes for additional processing thats required post fixed header decoding.

Reimplemented from kmMqtt::mqtt::BasePacket.


The documentation for this class was generated from the following file:
  • D:/Dev/Repos/kmMqtt/include/public/kmMqtt/Mqtt/Packets/Publish/Publish.h