SNode.C
|
#include <Subscribe.h>
Public Member Functions | |
Subscribe (uint32_t remainingLength, uint8_t flags) | |
![]() | |
Subscribe () | |
Subscribe (uint16_t packetIdentifier, const std::list< iot::mqtt::Topic > &topics) | |
uint16_t | getPacketIdentifier () const |
const std::list< iot::mqtt::Topic > & | getTopics () const |
![]() | |
ControlPacket (uint8_t type, const std::string &name) | |
ControlPacket (const ControlPacket &)=default | |
ControlPacket (ControlPacket &&)=default | |
virtual | ~ControlPacket () |
ControlPacket & | operator= (const ControlPacket &)=default |
ControlPacket & | operator= (ControlPacket &&)=default |
std::vector< char > | serialize () const |
const std::string & | getName () const |
uint8_t | getType () const |
uint8_t | getFlags () const |
![]() | |
~ControlPacketDeserializer () override | |
![]() | |
ControlPacketDeserializer ()=default | |
ControlPacketDeserializer (uint32_t remainingLength, uint8_t flags, uint8_t mustFlags) | |
ControlPacketDeserializer & | operator= (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 |
Private Attributes | |
iot::mqtt::types::String | topic |
iot::mqtt::types::UInt8 | qoS |
int | state = 0 |
Additional Inherited Members | |
![]() | |
iot::mqtt::types::UInt16 | packetIdentifier |
std::list< iot::mqtt::Topic > | topics |
![]() | |
uint8_t | flags = 0 |
![]() | |
bool | complete = false |
bool | error = false |
uint32_t | remainingLength = 0 |
std::size_t | consumed = 0 |
Definition at line 56 of file Subscribe.h.
iot::mqtt::server::packets::Subscribe::Subscribe | ( | uint32_t | remainingLength, |
uint8_t | flags | ||
) |
Definition at line 54 of file Subscribe.cpp.
References iot::mqtt::ControlPacket::flags.
Referenced by iot::mqtt::server::Mqtt::createControlPacketDeserializer().
|
overrideprivatevirtual |
Implements iot::mqtt::server::ControlPacketDeserializer.
Definition at line 103 of file Subscribe.cpp.
References iot::mqtt::server::Mqtt::_onSubscribe(), and iot::mqtt::Mqtt::printVP().
|
overrideprivatevirtual |
Implements iot::mqtt::ControlPacketDeserializer.
Definition at line 59 of file Subscribe.cpp.
References iot::mqtt::ControlPacketDeserializer::complete, iot::mqtt::types::TypeBase< ValueTypeT >::deserialize(), iot::mqtt::types::String::deserialize(), iot::mqtt::ControlPacketDeserializer::getConsumed(), iot::mqtt::ControlPacketDeserializer::getRemainingLength(), iot::mqtt::types::TypeBase< ValueTypeT >::isComplete(), iot::mqtt::packets::Subscribe::packetIdentifier, qoS, iot::mqtt::types::String::reset(), iot::mqtt::types::TypeBase< ValueTypeT >::reset(), state, topic, and iot::mqtt::packets::Subscribe::topics.
|
private |
Definition at line 67 of file Subscribe.h.
Referenced by deserializeVP().
|
private |
Definition at line 69 of file Subscribe.h.
Referenced by deserializeVP().
|
private |
Definition at line 66 of file Subscribe.h.
Referenced by deserializeVP().