SNode.C
|
#include <ControlPacketFactory.h>
Public Member Functions | |
ControlPacketFactory (core::socket::SocketContext *socketContext) | |
std::size_t | construct () |
bool | isComplete () const |
bool | isError () const |
iot::mqtt_fast::types::Binary & | getPacket () |
uint8_t | getPacketType () |
uint8_t | getPacketFlags () |
uint64_t | getRemainingLength () |
void | reset () |
Private Attributes | |
bool | completed = false |
bool | error = false |
int | state = 0 |
iot::mqtt_fast::types::Int_1 | typeFlags |
iot::mqtt_fast::types::Int_V | remainingLength |
iot::mqtt_fast::types::Binary | data |
Definition at line 40 of file ControlPacketFactory.h.
|
explicit |
Definition at line 30 of file ControlPacketFactory.cpp.
References ControlPacketFactory(), iot::mqtt_fast::types::Int_1::Int_1(), iot::mqtt_fast::types::Int_V::Int_V(), remainingLength, and typeFlags.
Referenced by ControlPacketFactory().
std::size_t iot::mqtt_fast::ControlPacketFactory::construct | ( | ) |
Definition at line 36 of file ControlPacketFactory.cpp.
References completed, iot::mqtt_fast::types::Int_1::construct(), iot::mqtt_fast::types::Int_V::construct(), error, iot::mqtt_fast::types::Int_V::getValue(), iot::mqtt_fast::types::TypeBase::isComplete(), iot::mqtt_fast::types::TypeBase::isError(), remainingLength, state, and typeFlags.
iot::mqtt_fast::types::Binary & iot::mqtt_fast::ControlPacketFactory::getPacket | ( | ) |
Definition at line 80 of file ControlPacketFactory.cpp.
uint8_t iot::mqtt_fast::ControlPacketFactory::getPacketFlags | ( | ) |
Definition at line 88 of file ControlPacketFactory.cpp.
References iot::mqtt_fast::types::Int_1::getValue(), and typeFlags.
Referenced by iot::mqtt_fast::ControlPacket::ControlPacket(), and iot::mqtt_fast::packets::Publish::Publish().
uint8_t iot::mqtt_fast::ControlPacketFactory::getPacketType | ( | ) |
Definition at line 84 of file ControlPacketFactory.cpp.
References iot::mqtt_fast::types::Int_1::getValue(), and typeFlags.
Referenced by iot::mqtt_fast::ControlPacket::ControlPacket().
uint64_t iot::mqtt_fast::ControlPacketFactory::getRemainingLength | ( | ) |
Definition at line 92 of file ControlPacketFactory.cpp.
bool iot::mqtt_fast::ControlPacketFactory::isComplete | ( | ) | const |
Definition at line 72 of file ControlPacketFactory.cpp.
References completed.
bool iot::mqtt_fast::ControlPacketFactory::isError | ( | ) | const |
Definition at line 76 of file ControlPacketFactory.cpp.
References error.
void iot::mqtt_fast::ControlPacketFactory::reset | ( | ) |
Definition at line 96 of file ControlPacketFactory.cpp.
References completed, error, remainingLength, iot::mqtt_fast::types::Int_1::reset(), iot::mqtt_fast::types::Int_V::reset(), state, and typeFlags.
|
private |
Definition at line 55 of file ControlPacketFactory.h.
Referenced by construct(), isComplete(), and reset().
|
private |
Definition at line 61 of file ControlPacketFactory.h.
|
private |
Definition at line 56 of file ControlPacketFactory.h.
Referenced by construct(), isError(), and reset().
|
private |
Definition at line 60 of file ControlPacketFactory.h.
Referenced by construct(), ControlPacketFactory(), and reset().
|
private |
Definition at line 57 of file ControlPacketFactory.h.
Referenced by construct(), and reset().
|
private |
Definition at line 59 of file ControlPacketFactory.h.
Referenced by construct(), ControlPacketFactory(), getPacketFlags(), getPacketType(), and reset().