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 56 of file Pingreq.h.

Constructor & Destructor Documentation

◆ Pingreq()

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

Definition at line 52 of file Pingreq.cpp.

References iot::mqtt::ControlPacket::flags.

Referenced by iot::mqtt::server::Mqtt::createControlPacketDeserializer().

Here is the caller graph for this function:

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 65 of file Pingreq.cpp.

65 {
66 mqtt->printVP(*this);
67 mqtt->_onPingreq(*this);
68 }
void printVP(const iot::mqtt::ControlPacket &packet) const
Definition Mqtt.cpp:368
void _onPingreq(const iot::mqtt::server::packets::Pingreq &pingreq)
Definition Mqtt.cpp:342

References iot::mqtt::server::Mqtt::_onPingreq(), and iot::mqtt::Mqtt::printVP().

Here is the call graph for this function:

◆ deserializeVP()

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

Implements iot::mqtt::ControlPacketDeserializer.

Definition at line 57 of file Pingreq.cpp.

57 {
58 // no V-Header
59 // no Payload
60
61 complete = true;
62 return 0;
63 }

References iot::mqtt::ControlPacketDeserializer::complete.


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