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 62 of file ControlPacketFactory.h.
|
explicit |
Definition at line 52 of file ControlPacketFactory.cpp.
References iot::mqtt_fast::types::Binary::Binary(), data, iot::mqtt_fast::types::Int_1::Int_1(), iot::mqtt_fast::types::Int_V::Int_V(), remainingLength, and typeFlags.
Referenced by iot::mqtt_fast::SocketContext::SocketContext().
std::size_t iot::mqtt_fast::ControlPacketFactory::construct | ( | ) |
Definition at line 58 of file ControlPacketFactory.cpp.
References completed, iot::mqtt_fast::types::Binary::construct(), iot::mqtt_fast::types::Int_1::construct(), iot::mqtt_fast::types::Int_V::construct(), data, error, iot::mqtt_fast::types::Int_V::getValue(), iot::mqtt_fast::types::TypeBase::isComplete(), iot::mqtt_fast::types::TypeBase::isError(), remainingLength, iot::mqtt_fast::types::Binary::setLength(), state, and typeFlags.
Referenced by iot::mqtt_fast::SocketContext::onReceivedFromPeer().
iot::mqtt_fast::types::Binary & iot::mqtt_fast::ControlPacketFactory::getPacket | ( | ) |
Definition at line 102 of file ControlPacketFactory.cpp.
References data.
Referenced by iot::mqtt_fast::ControlPacket::ControlPacket(), and iot::mqtt_fast::SocketContext::onReceivedFromPeer().
uint8_t iot::mqtt_fast::ControlPacketFactory::getPacketFlags | ( | ) |
Definition at line 110 of file ControlPacketFactory.cpp.
References iot::mqtt_fast::types::Int_1::getValue(), and typeFlags.
Referenced by iot::mqtt_fast::ControlPacket::ControlPacket(), iot::mqtt_fast::SocketContext::onReceivedFromPeer(), and iot::mqtt_fast::packets::Publish::Publish().
uint8_t iot::mqtt_fast::ControlPacketFactory::getPacketType | ( | ) |
Definition at line 106 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::SocketContext::onReceivedFromPeer().
uint64_t iot::mqtt_fast::ControlPacketFactory::getRemainingLength | ( | ) |
Definition at line 114 of file ControlPacketFactory.cpp.
References data, and iot::mqtt_fast::types::Binary::getValue().
Referenced by iot::mqtt_fast::SocketContext::onReceivedFromPeer().
bool iot::mqtt_fast::ControlPacketFactory::isComplete | ( | ) | const |
Definition at line 94 of file ControlPacketFactory.cpp.
References completed.
Referenced by iot::mqtt_fast::SocketContext::onReceivedFromPeer().
bool iot::mqtt_fast::ControlPacketFactory::isError | ( | ) | const |
Definition at line 98 of file ControlPacketFactory.cpp.
References error.
Referenced by iot::mqtt_fast::SocketContext::onReceivedFromPeer().
void iot::mqtt_fast::ControlPacketFactory::reset | ( | ) |
Definition at line 118 of file ControlPacketFactory.cpp.
References completed, data, error, remainingLength, iot::mqtt_fast::types::Binary::reset(), iot::mqtt_fast::types::Int_1::reset(), iot::mqtt_fast::types::Int_V::reset(), state, and typeFlags.
Referenced by iot::mqtt_fast::SocketContext::onReceivedFromPeer().
|
private |
Definition at line 77 of file ControlPacketFactory.h.
Referenced by construct(), isComplete(), and reset().
|
private |
Definition at line 83 of file ControlPacketFactory.h.
Referenced by construct(), ControlPacketFactory(), getPacket(), getRemainingLength(), and reset().
|
private |
Definition at line 78 of file ControlPacketFactory.h.
Referenced by construct(), isError(), and reset().
|
private |
Definition at line 82 of file ControlPacketFactory.h.
Referenced by construct(), ControlPacketFactory(), and reset().
|
private |
Definition at line 79 of file ControlPacketFactory.h.
Referenced by construct(), and reset().
|
private |
Definition at line 81 of file ControlPacketFactory.h.
Referenced by construct(), ControlPacketFactory(), getPacketFlags(), getPacketType(), and reset().