SNode.C
|
#include <Connect.h>
Public Member Functions | |
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 |
![]() | |
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 |
Protected Attributes | |
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 |
![]() | |
uint8_t | flags = 0 |
Private Member Functions | |
std::vector< char > | serializeVP () const override |
iot::mqtt::packets::Connect::Connect | ( | ) |
Definition at line 30 of file Connect.cpp.
References Connect().
Referenced by Connect(), and Connect().
iot::mqtt::packets::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 ) |
Definition at line 34 of file Connect.cpp.
References Connect(), passwordFlag, usernameFlag, willFlag, willQoS, and willRetain.
bool iot::mqtt::packets::Connect::getCleanSession | ( | ) | const |
Definition at line 138 of file Connect.cpp.
References cleanSession.
std::string iot::mqtt::packets::Connect::getClientId | ( | ) | const |
Definition at line 114 of file Connect.cpp.
uint8_t iot::mqtt::packets::Connect::getConnectFlags | ( | ) | const |
Definition at line 106 of file Connect.cpp.
uint16_t iot::mqtt::packets::Connect::getKeepAlive | ( | ) | const |
Definition at line 110 of file Connect.cpp.
uint8_t iot::mqtt::packets::Connect::getLevel | ( | ) | const |
Definition at line 102 of file Connect.cpp.
std::string iot::mqtt::packets::Connect::getPassword | ( | ) | const |
Definition at line 158 of file Connect.cpp.
bool iot::mqtt::packets::Connect::getPasswordFlag | ( | ) | const |
Definition at line 122 of file Connect.cpp.
References passwordFlag.
std::string iot::mqtt::packets::Connect::getProtocol | ( | ) | const |
Definition at line 98 of file Connect.cpp.
bool iot::mqtt::packets::Connect::getReflect | ( | ) | const |
std::string iot::mqtt::packets::Connect::getUsername | ( | ) | const |
Definition at line 154 of file Connect.cpp.
bool iot::mqtt::packets::Connect::getUsernameFlag | ( | ) | const |
Definition at line 118 of file Connect.cpp.
References usernameFlag.
bool iot::mqtt::packets::Connect::getWillFlag | ( | ) | const |
std::string iot::mqtt::packets::Connect::getWillMessage | ( | ) | const |
Definition at line 150 of file Connect.cpp.
uint8_t iot::mqtt::packets::Connect::getWillQoS | ( | ) | const |
bool iot::mqtt::packets::Connect::getWillRetain | ( | ) | const |
Definition at line 126 of file Connect.cpp.
References willRetain.
std::string iot::mqtt::packets::Connect::getWillTopic | ( | ) | const |
Definition at line 146 of file Connect.cpp.
|
overrideprivatevirtual |
Implements iot::mqtt::ControlPacket.
Definition at line 64 of file Connect.cpp.
References passwordFlag, usernameFlag, and willFlag.
|
protected |
Definition at line 95 of file Connect.h.
Referenced by getCleanSession().
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
Definition at line 91 of file Connect.h.
Referenced by Connect(), getPasswordFlag(), and serializeVP().
|
protected |
|
protected |
Definition at line 96 of file Connect.h.
Referenced by getReflect().
|
protected |
|
protected |
|
protected |
Definition at line 90 of file Connect.h.
Referenced by Connect(), getUsernameFlag(), and serializeVP().
|
protected |
Definition at line 94 of file Connect.h.
Referenced by Connect(), getWillFlag(), and serializeVP().
|
protected |
|
protected |
Definition at line 93 of file Connect.h.
Referenced by Connect(), and getWillQoS().
|
protected |
Definition at line 92 of file Connect.h.
Referenced by Connect(), and getWillRetain().
|
protected |