SNode.C
|
#include <ControlPacket.h>
Public Member Functions | |
ControlPacket (uint8_t type, uint8_t reserved=0) | |
ControlPacket (iot::mqtt_fast::ControlPacketFactory &controlPacketFactory) | |
ControlPacket (const ControlPacket &)=delete | |
ControlPacket (ControlPacket &&)=delete | |
ControlPacket & | operator= (const ControlPacket &)=delete |
ControlPacket & | operator= (ControlPacket &&)=delete |
uint8_t | getType () const |
uint8_t | getReserved () const |
uint64_t | getRemainingLength () const |
std::vector< char > | getPacket () |
bool | isError () const |
Protected Member Functions | |
std::vector< char > & | getValue () |
uint8_t | getInt8 () |
uint16_t | getInt16 () |
uint32_t | getInt32 () |
uint64_t | getInt64 () |
uint32_t | getIntV () |
std::string | getString () |
std::string | getStringRaw () |
std::list< uint8_t > | getUint8ListRaw () |
void | putInt8 (uint8_t value) |
void | putInt16 (uint16_t value) |
void | putInt32 (uint32_t value) |
void | putInt64 (uint64_t value) |
void | putIntV (uint32_t value) |
void | putString (const std::string &value) |
void | putStringRaw (const std::string &value) |
void | putUint8ListRaw (const std::list< uint8_t > &value) |
bool | isError () |
Protected Attributes | |
bool | error = false |
Private Attributes | |
uint8_t | type |
uint8_t | reserved |
iot::mqtt_fast::types::Binary | data |
Definition at line 40 of file ControlPacket.h.
|
explicit |
Definition at line 32 of file ControlPacket.cpp.
References reserved, and type.
Referenced by iot::mqtt_fast::packets::Connack::Connack(), iot::mqtt_fast::packets::Connect::Connect(), iot::mqtt_fast::packets::Disconnect::Disconnect(), iot::mqtt_fast::packets::Pingreq::Pingreq(), iot::mqtt_fast::packets::Pingresp::Pingresp(), iot::mqtt_fast::packets::Puback::Puback(), iot::mqtt_fast::packets::Pubcomp::Pubcomp(), iot::mqtt_fast::packets::Publish::Publish(), iot::mqtt_fast::packets::Pubrec::Pubrec(), iot::mqtt_fast::packets::Pubrel::Pubrel(), iot::mqtt_fast::packets::Suback::Suback(), iot::mqtt_fast::packets::Subscribe::Subscribe(), iot::mqtt_fast::packets::Unsuback::Unsuback(), and iot::mqtt_fast::packets::Unsubscribe::Unsubscribe().
|
explicit |
Definition at line 37 of file ControlPacket.cpp.
References ControlPacket(), iot::mqtt_fast::ControlPacketFactory::getPacketFlags(), iot::mqtt_fast::ControlPacketFactory::getPacketType(), reserved, and type.
Referenced by iot::mqtt_fast::packets::Connack::Connack(), iot::mqtt_fast::packets::Connect::Connect(), ControlPacket(), iot::mqtt_fast::packets::Disconnect::Disconnect(), iot::mqtt_fast::packets::Pingreq::Pingreq(), iot::mqtt_fast::packets::Pingresp::Pingresp(), iot::mqtt_fast::packets::Puback::Puback(), iot::mqtt_fast::packets::Pubcomp::Pubcomp(), iot::mqtt_fast::packets::Publish::Publish(), iot::mqtt_fast::packets::Pubrec::Pubrec(), iot::mqtt_fast::packets::Pubrel::Pubrel(), iot::mqtt_fast::packets::Suback::Suback(), iot::mqtt_fast::packets::Subscribe::Subscribe(), iot::mqtt_fast::packets::Unsuback::Unsuback(), and iot::mqtt_fast::packets::Unsubscribe::Unsubscribe().
|
delete |
|
delete |
|
protected |
Definition at line 87 of file ControlPacket.cpp.
Referenced by iot::mqtt_fast::packets::Connect::Connect(), iot::mqtt_fast::packets::Puback::Puback(), iot::mqtt_fast::packets::Pubcomp::Pubcomp(), iot::mqtt_fast::packets::Publish::Publish(), iot::mqtt_fast::packets::Pubrec::Pubrec(), iot::mqtt_fast::packets::Pubrel::Pubrel(), iot::mqtt_fast::packets::Suback::Suback(), iot::mqtt_fast::packets::Subscribe::Subscribe(), iot::mqtt_fast::packets::Unsuback::Unsuback(), and iot::mqtt_fast::packets::Unsubscribe::Unsubscribe().
|
protected |
Definition at line 91 of file ControlPacket.cpp.
|
protected |
Definition at line 95 of file ControlPacket.cpp.
|
protected |
Definition at line 83 of file ControlPacket.cpp.
Referenced by iot::mqtt_fast::packets::Connack::Connack(), iot::mqtt_fast::packets::Connect::Connect(), and iot::mqtt_fast::packets::Subscribe::Subscribe().
|
protected |
Definition at line 99 of file ControlPacket.cpp.
std::vector< char > iot::mqtt_fast::ControlPacket::getPacket | ( | ) |
Definition at line 55 of file ControlPacket.cpp.
uint64_t iot::mqtt_fast::ControlPacket::getRemainingLength | ( | ) | const |
Definition at line 51 of file ControlPacket.cpp.
uint8_t iot::mqtt_fast::ControlPacket::getReserved | ( | ) | const |
|
protected |
Definition at line 103 of file ControlPacket.cpp.
Referenced by iot::mqtt_fast::packets::Connect::Connect(), iot::mqtt_fast::packets::Publish::Publish(), iot::mqtt_fast::packets::Subscribe::Subscribe(), and iot::mqtt_fast::packets::Unsubscribe::Unsubscribe().
|
protected |
Definition at line 107 of file ControlPacket.cpp.
Referenced by iot::mqtt_fast::packets::Publish::Publish().
uint8_t iot::mqtt_fast::ControlPacket::getType | ( | ) | const |
|
protected |
Definition at line 111 of file ControlPacket.cpp.
|
protected |
Definition at line 79 of file ControlPacket.cpp.
|
protected |
Definition at line 147 of file ControlPacket.cpp.
bool iot::mqtt_fast::ControlPacket::isError | ( | ) | const |
|
delete |
|
delete |
|
protected |
Definition at line 119 of file ControlPacket.cpp.
Referenced by iot::mqtt_fast::packets::Connect::Connect(), iot::mqtt_fast::packets::Puback::Puback(), iot::mqtt_fast::packets::Pubcomp::Pubcomp(), iot::mqtt_fast::packets::Publish::Publish(), iot::mqtt_fast::packets::Pubrec::Pubrec(), iot::mqtt_fast::packets::Pubrel::Pubrel(), iot::mqtt_fast::packets::Suback::Suback(), iot::mqtt_fast::packets::Subscribe::Subscribe(), iot::mqtt_fast::packets::Unsuback::Unsuback(), and iot::mqtt_fast::packets::Unsubscribe::Unsubscribe().
|
protected |
Definition at line 123 of file ControlPacket.cpp.
|
protected |
Definition at line 127 of file ControlPacket.cpp.
|
protected |
Definition at line 115 of file ControlPacket.cpp.
Referenced by iot::mqtt_fast::packets::Connack::Connack(), and iot::mqtt_fast::packets::Connect::Connect().
|
protected |
Definition at line 131 of file ControlPacket.cpp.
|
protected |
Definition at line 135 of file ControlPacket.cpp.
Referenced by iot::mqtt_fast::packets::Connect::Connect(), and iot::mqtt_fast::packets::Publish::Publish().
|
protected |
Definition at line 139 of file ControlPacket.cpp.
Referenced by iot::mqtt_fast::packets::Publish::Publish().
|
protected |
Definition at line 143 of file ControlPacket.cpp.
|
private |
Definition at line 85 of file ControlPacket.h.
|
protected |
Definition at line 88 of file ControlPacket.h.
Referenced by iot::mqtt_fast::packets::Connack::Connack(), iot::mqtt_fast::packets::Connect::Connect(), iot::mqtt_fast::packets::Disconnect::Disconnect(), isError(), iot::mqtt_fast::packets::Pingreq::Pingreq(), iot::mqtt_fast::packets::Pingresp::Pingresp(), iot::mqtt_fast::packets::Puback::Puback(), iot::mqtt_fast::packets::Pubcomp::Pubcomp(), iot::mqtt_fast::packets::Publish::Publish(), iot::mqtt_fast::packets::Pubrec::Pubrec(), iot::mqtt_fast::packets::Pubrel::Pubrel(), iot::mqtt_fast::packets::Suback::Suback(), and iot::mqtt_fast::packets::Unsuback::Unsuback().
|
private |
Definition at line 83 of file ControlPacket.h.
Referenced by ControlPacket(), ControlPacket(), and getReserved().
|
private |
Definition at line 82 of file ControlPacket.h.
Referenced by ControlPacket(), ControlPacket(), and getType().