#include <Connect.h>
Public Member Functions | |
| Connect (uint32_t remainingLength, uint8_t flags) | |
| bool | isFakedClientId () const |
| Public Member Functions inherited from iot::mqtt::packets::Connect | |
| Connect () | |
| Connect (const std::string &clientId, uint16_t keepAlive, bool cleanSession, const std::string &willTopic, const std::string &willMessage, uint8_t willQoS, bool willRetain, const std::string &username, const std::string &password, bool loopPrevention) | |
| std::string | getProtocol () const |
| uint8_t | getLevel () const |
| uint8_t | getConnectFlags () const |
| uint16_t | getKeepAlive () const |
| std::string | getClientId () const |
| bool | getUsernameFlag () const |
| bool | getPasswordFlag () const |
| bool | getWillRetain () const |
| uint8_t | getWillQoS () const |
| bool | getWillFlag () const |
| bool | getCleanSession () const |
| bool | getReflect () const |
| std::string | getWillTopic () const |
| std::string | getWillMessage () const |
| std::string | getUsername () const |
| std::string | getPassword () const |
| 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 () |
| ControlPacket & | operator= (const ControlPacket &)=default |
| ControlPacket & | operator= (ControlPacket &&)=default |
| std::vector< char > | serialize () const |
| const std::string & | getName () const |
| Public Member Functions inherited from iot::mqtt::server::ControlPacketDeserializer | |
| ~ControlPacketDeserializer () override | |
| ControlPacketDeserializer ()=default | |
| ControlPacketDeserializer (uint32_t remainingLength, uint8_t flags, uint8_t mustFlags) | |
| Public Member Functions inherited from iot::mqtt::ControlPacketDeserializer | |
| 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 | |
| int | state = 0 |
| bool | fakedClientId = false |
Additional Inherited Members | |
| Protected Member Functions inherited from iot::mqtt::ControlPacket | |
| uint8_t | getType () const |
| uint8_t | getFlags () const |
| Protected Attributes inherited from iot::mqtt::packets::Connect | |
| iot::mqtt::types::String | protocol |
| iot::mqtt::types::UInt8 | level |
| iot::mqtt::types::UInt8 | connectFlags |
| iot::mqtt::types::UInt16 | keepAlive |
| iot::mqtt::types::String | clientId |
| iot::mqtt::types::String | willTopic |
| iot::mqtt::types::String | willMessage |
| iot::mqtt::types::String | username |
| iot::mqtt::types::String | password |
| bool | usernameFlag = false |
| bool | passwordFlag = false |
| bool | willRetain = false |
| uint8_t | willQoS = 0 |
| bool | willFlag = false |
| bool | cleanSession = false |
| bool | reflect = true |
| bool | reserved = false |
| 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 |
| iot::mqtt::server::packets::Connect::Connect | ( | uint32_t | remainingLength, |
| uint8_t | flags ) |
Definition at line 56 of file Connect.cpp.
References iot::mqtt::ControlPacket::flags.
Referenced by iot::mqtt::server::Mqtt::createControlPacketDeserializer().
|
overrideprivatevirtual |
Implements iot::mqtt::server::ControlPacketDeserializer.
Definition at line 165 of file Connect.cpp.
References iot::mqtt::server::Mqtt::_onConnect(), and iot::mqtt::Mqtt::printVP().
|
overrideprivatevirtual |
Implements iot::mqtt::ControlPacketDeserializer.
Definition at line 61 of file Connect.cpp.
References iot::mqtt::packets::Connect::cleanSession, iot::mqtt::packets::Connect::clientId, iot::mqtt::ControlPacketDeserializer::complete, iot::mqtt::packets::Connect::connectFlags, iot::mqtt::types::String::deserialize(), iot::mqtt::types::TypeBase< ValueTypeT >::deserialize(), fakedClientId, utils::Uuid::getUuid(), iot::mqtt::types::TypeBase< ValueTypeT >::isComplete(), iot::mqtt::packets::Connect::keepAlive, iot::mqtt::packets::Connect::level, iot::mqtt::types::String::operator=(), iot::mqtt::types::UInt8::operator=(), iot::mqtt::packets::Connect::password, iot::mqtt::packets::Connect::passwordFlag, iot::mqtt::packets::Connect::protocol, iot::mqtt::packets::Connect::reflect, iot::mqtt::packets::Connect::reserved, iot::mqtt::types::TypeBase< ValueTypeT >::size(), state, iot::mqtt::packets::Connect::username, iot::mqtt::packets::Connect::usernameFlag, iot::mqtt::packets::Connect::willFlag, iot::mqtt::packets::Connect::willMessage, iot::mqtt::packets::Connect::willQoS, iot::mqtt::packets::Connect::willRetain, and iot::mqtt::packets::Connect::willTopic.
| bool iot::mqtt::server::packets::Connect::isFakedClientId | ( | ) | const |
Definition at line 170 of file Connect.cpp.
References fakedClientId.
Referenced by iot::mqtt::server::Mqtt::_onConnect().
|
private |
Definition at line 70 of file Connect.h.
Referenced by deserializeVP(), and isFakedClientId().
|
private |
Definition at line 68 of file Connect.h.
Referenced by deserializeVP().