HDLC-Daemon
|
#include <HdlcdPacketCtrl.h>
Public Types | |
enum | E_CTRL_TYPE { CTRL_TYPE_PORT_STATUS = 0x00, CTRL_TYPE_ECHO = 0x10, CTRL_TYPE_KEEP_ALIVE = 0x20, CTRL_TYPE_PORT_KILL = 0x30, CTRL_TYPE_UNSET = 0xFF } |
Public Member Functions | |
E_CTRL_TYPE | GetPacketType () const |
bool | GetIsAlive () const |
bool | GetIsLockedByOthers () const |
bool | GetIsLockedBySelf () const |
bool | GetDesiredLockState () const |
![]() | |
Frame () | |
The constructor of Frame objects. More... | |
virtual | ~Frame () |
The destructor of Frame objects. More... | |
size_t | BytesNeeded () const |
Query the amount of outstanding data during reception for frame assembly. More... | |
bool | ParseBytes (const unsigned char *a_ReadBuffer, size_t &a_ReadBufferOffset, size_t &a_BytesAvailable) |
Deliver a chunk of received bytes in the phase of deserialization. More... | |
Static Public Member Functions | |
static std::shared_ptr< HdlcdPacketCtrl > | CreateDeserializedPacket () |
static HdlcdPacketCtrl | CreatePortStatusRequest (bool a_bLockSerialPort) |
static HdlcdPacketCtrl | CreatePortStatusResponse (bool a_bIsAlive, bool a_bIsLockedByOthers, bool a_bIsLockedBySelf) |
static HdlcdPacketCtrl | CreateEchoRequest () |
static HdlcdPacketCtrl | CreateKeepAliveRequest () |
static HdlcdPacketCtrl | CreatePortKillRequest () |
Additional Inherited Members | |
![]() | |
std::vector< unsigned char > | m_Buffer |
The buffer containing partly received frames or higher-layer payload. More... | |
size_t | m_BytesRemaining |
The amount of bytes required to finalize frame assembly during reception. More... | |
Definition at line 43 of file HdlcdPacketCtrl.h.
Enumerator | |
---|---|
CTRL_TYPE_PORT_STATUS | |
CTRL_TYPE_ECHO | |
CTRL_TYPE_KEEP_ALIVE | |
CTRL_TYPE_PORT_KILL | |
CTRL_TYPE_UNSET |
Definition at line 46 of file HdlcdPacketCtrl.h.
|
inlinestatic |
|
inlinestatic |
Definition at line 79 of file HdlcdPacketCtrl.h.
|
inlinestatic |
|
inlinestatic |
Definition at line 91 of file HdlcdPacketCtrl.h.
|
inlinestatic |
Definition at line 63 of file HdlcdPacketCtrl.h.
|
inlinestatic |
|
inline |
|
inline |
Definition at line 103 of file HdlcdPacketCtrl.h.
|
inline |
Definition at line 109 of file HdlcdPacketCtrl.h.
|
inline |
Definition at line 115 of file HdlcdPacketCtrl.h.
|
inline |