SNode.C
Loading...
Searching...
No Matches
iot::mqtt::server::packets::Pingreq Class Reference

#include <Pingreq.h>

Inheritance diagram for iot::mqtt::server::packets::Pingreq:
Collaboration diagram for iot::mqtt::server::packets::Pingreq:

Public Member Functions

 Pingreq (uint32_t remainingLength, uint8_t flags)
 
- Public Member Functions inherited from iot::mqtt::packets::Pingreq
 Pingreq ()
 
- Public Member Functions inherited from iot::mqtt::ControlPacket
 ControlPacket (uint8_t type, const std::string &name)
 
 ControlPacket (const ControlPacket &)=default
 
 ControlPacket (ControlPacket &&)=default
 
virtual ~ControlPacket ()
 
ControlPacketoperator= (const ControlPacket &)=default
 
ControlPacketoperator= (ControlPacket &&)=default
 
std::vector< char > serialize () const
 
const std::string & getName () const
 
uint8_t getType () const
 
uint8_t getFlags () const
 
- Public Member Functions inherited from iot::mqtt::server::ControlPacketDeserializer
 ~ControlPacketDeserializer () override
 
- Public Member Functions inherited from iot::mqtt::ControlPacketDeserializer
 ControlPacketDeserializer ()=default
 
 ControlPacketDeserializer (uint32_t remainingLength, uint8_t flags, uint8_t mustFlags)
 
ControlPacketDeserializeroperator= (const ControlPacketDeserializer &)=default
 
std::size_t deserialize (iot::mqtt::MqttContext *mqttContext)
 
uint32_t getRemainingLength () const
 
bool isComplete () const
 
bool isError () const
 
std::size_t getConsumed () const
 

Private Member Functions

std::size_t deserializeVP (iot::mqtt::MqttContext *mqttContext) override
 
void deliverPacket (iot::mqtt::server::Mqtt *mqtt) override
 

Additional Inherited Members

- Protected Attributes inherited from iot::mqtt::ControlPacket
uint8_t flags = 0
 
- Protected Attributes inherited from iot::mqtt::ControlPacketDeserializer
bool complete = false
 
bool error = false
 
uint32_t remainingLength = 0
 
std::size_t consumed = 0
 

Detailed Description

Definition at line 34 of file Pingreq.h.

Constructor & Destructor Documentation

◆ Pingreq()

iot::mqtt::server::packets::Pingreq::Pingreq ( uint32_t remainingLength,
uint8_t flags )

Member Function Documentation

◆ deliverPacket()

void iot::mqtt::server::packets::Pingreq::deliverPacket ( iot::mqtt::server::Mqtt * mqtt)
overrideprivatevirtual

Implements iot::mqtt::server::ControlPacketDeserializer.

Definition at line 43 of file Pingreq.cpp.

43 {
44 mqtt->printVP(*this);
45 mqtt->_onPingreq(*this);
46 }
void printVP(const iot::mqtt::ControlPacket &packet) const
Definition Mqtt.cpp:346
void _onPingreq(const iot::mqtt::server::packets::Pingreq &pingreq)
Definition Mqtt.cpp:312

◆ deserializeVP()

std::size_t iot::mqtt::server::packets::Pingreq::deserializeVP ( iot::mqtt::MqttContext * mqttContext)
overrideprivatevirtual

Implements iot::mqtt::ControlPacketDeserializer.

Definition at line 35 of file Pingreq.cpp.

35 {
36 // no V-Header
37 // no Payload
38
39 complete = true;
40 return 0;
41 }

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