SNode.C
|
#include <ControlPacket.h>
Public Member Functions | |
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 |
virtual std::vector< char > | serializeVP () const =0 |
std::vector< char > | serialize () const |
const std::string & | getName () const |
uint8_t | getType () const |
uint8_t | getFlags () const |
Protected Attributes | |
uint8_t | flags = 0 |
Private Attributes | |
std::string | name |
uint8_t | type = 0 |
Definition at line 91 of file ControlPacket.h.
iot::mqtt::ControlPacket::ControlPacket | ( | uint8_t | type, |
const std::string & | name | ||
) |
Definition at line 70 of file ControlPacket.cpp.
References flags, name, and type.
Referenced by iot::mqtt::packets::Connack::Connack(), iot::mqtt::packets::Connect::Connect(), iot::mqtt::packets::Disconnect::Disconnect(), iot::mqtt::packets::Pingreq::Pingreq(), iot::mqtt::packets::Pingresp::Pingresp(), iot::mqtt::packets::Puback::Puback(), iot::mqtt::packets::Pubcomp::Pubcomp(), iot::mqtt::packets::Publish::Publish(), iot::mqtt::packets::Pubrec::Pubrec(), iot::mqtt::packets::Pubrel::Pubrel(), iot::mqtt::packets::Suback::Suback(), iot::mqtt::packets::Subscribe::Subscribe(), iot::mqtt::packets::Unsuback::Unsuback(), and iot::mqtt::packets::Unsubscribe::Unsubscribe().
|
default |
|
default |
|
virtual |
Definition at line 119 of file ControlPacket.cpp.
uint8_t iot::mqtt::ControlPacket::getFlags | ( | ) | const |
const std::string & iot::mqtt::ControlPacket::getName | ( | ) | const |
Definition at line 122 of file ControlPacket.cpp.
References name.
Referenced by iot::mqtt::Mqtt::printVP(), and iot::mqtt::Mqtt::send().
uint8_t iot::mqtt::ControlPacket::getType | ( | ) | const |
|
default |
|
default |
std::vector< char > iot::mqtt::ControlPacket::serialize | ( | ) | const |
Definition at line 126 of file ControlPacket.cpp.
References iot::mqtt::FixedHeader::FixedHeader(), flags, iot::mqtt::FixedHeader::serialize(), serializeVP(), and type.
Referenced by iot::mqtt::Mqtt::send().
|
pure virtual |
Implemented in iot::mqtt::packets::Connack, iot::mqtt::packets::Connect, iot::mqtt::packets::Disconnect, iot::mqtt::packets::Pingreq, iot::mqtt::packets::Pingresp, iot::mqtt::packets::Puback, iot::mqtt::packets::Pubcomp, iot::mqtt::packets::Publish, iot::mqtt::packets::Pubrec, iot::mqtt::packets::Pubrel, iot::mqtt::packets::Suback, iot::mqtt::packets::Subscribe, iot::mqtt::packets::Unsuback, and iot::mqtt::packets::Unsubscribe.
Referenced by iot::mqtt::Mqtt::printVP(), and serialize().
|
protected |
Definition at line 114 of file ControlPacket.h.
Referenced by iot::mqtt::client::packets::Connack::Connack(), iot::mqtt::server::packets::Connect::Connect(), ControlPacket(), iot::mqtt::server::packets::Disconnect::Disconnect(), getFlags(), iot::mqtt::server::packets::Pingreq::Pingreq(), iot::mqtt::client::packets::Pingresp::Pingresp(), iot::mqtt::client::packets::Puback::Puback(), iot::mqtt::server::packets::Puback::Puback(), iot::mqtt::client::packets::Pubcomp::Pubcomp(), iot::mqtt::server::packets::Pubcomp::Pubcomp(), iot::mqtt::packets::Publish::Publish(), iot::mqtt::client::packets::Publish::Publish(), iot::mqtt::server::packets::Publish::Publish(), iot::mqtt::client::packets::Pubrec::Pubrec(), iot::mqtt::server::packets::Pubrec::Pubrec(), iot::mqtt::client::packets::Pubrel::Pubrel(), iot::mqtt::server::packets::Pubrel::Pubrel(), serialize(), iot::mqtt::client::packets::Suback::Suback(), iot::mqtt::server::packets::Subscribe::Subscribe(), iot::mqtt::client::packets::Unsuback::Unsuback(), and iot::mqtt::server::packets::Unsubscribe::Unsubscribe().
|
private |
Definition at line 110 of file ControlPacket.h.
Referenced by ControlPacket(), and getName().
|
private |
Definition at line 111 of file ControlPacket.h.
Referenced by ControlPacket(), getType(), and serialize().