SNode.C
|
#include <Connack.h>
Public Member Functions | |
Connack () | |
Connack (uint8_t returncode, uint8_t acknowledgeFlags) | |
uint8_t | getAcknowledgeFlags () const |
uint8_t | getReturnCode () const |
bool | getSessionPresent () 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::UInt8 | acknowledgeFlags |
iot::mqtt::types::UInt8 | returnCode |
bool | sessionPresent = false |
![]() | |
uint8_t | flags = 0 |
Private Member Functions | |
std::vector< char > | serializeVP () const override |
iot::mqtt::packets::Connack::Connack | ( | ) |
Definition at line 53 of file Connack.cpp.
References iot::mqtt::ControlPacket::ControlPacket().
Referenced by Connack().
iot::mqtt::packets::Connack::Connack | ( | uint8_t | returncode, |
uint8_t | acknowledgeFlags | ||
) |
Definition at line 57 of file Connack.cpp.
References acknowledgeFlags, Connack(), iot::mqtt::types::UInt8::operator=(), and returnCode.
Referenced by iot::mqtt::server::Mqtt::sendConnack().
uint8_t iot::mqtt::packets::Connack::getAcknowledgeFlags | ( | ) | const |
Definition at line 72 of file Connack.cpp.
References acknowledgeFlags.
Referenced by iot::mqtt::client::Mqtt::_onConnack().
uint8_t iot::mqtt::packets::Connack::getReturnCode | ( | ) | const |
Definition at line 76 of file Connack.cpp.
References returnCode.
Referenced by iot::mqtt::client::Mqtt::_onConnack().
bool iot::mqtt::packets::Connack::getSessionPresent | ( | ) | const |
Definition at line 80 of file Connack.cpp.
References sessionPresent.
Referenced by iot::mqtt::client::Mqtt::_onConnack().
|
overrideprivatevirtual |
Implements iot::mqtt::ControlPacket.
Definition at line 63 of file Connack.cpp.
References acknowledgeFlags, returnCode, and iot::mqtt::types::TypeBase< ValueTypeT >::serialize().
|
protected |
Definition at line 81 of file Connack.h.
Referenced by Connack(), iot::mqtt::client::packets::Connack::deserializeVP(), getAcknowledgeFlags(), and serializeVP().
|
protected |
Definition at line 82 of file Connack.h.
Referenced by Connack(), iot::mqtt::client::packets::Connack::deserializeVP(), getReturnCode(), and serializeVP().
|
protected |
Definition at line 84 of file Connack.h.
Referenced by iot::mqtt::client::packets::Connack::deserializeVP(), and getSessionPresent().