HDLC-Daemon
|
#include <ProtocolState.h>
Public Member Functions | |
ProtocolState (std::shared_ptr< ISerialPortHandler > a_SerialPortHandler, boost::asio::io_service &a_IOService) | |
void | Start () |
void | Stop () |
void | Shutdown () |
void | SendPayload (const std::vector< unsigned char > &a_Payload, bool a_bReliable) |
void | TriggerNextHDLCFrame () |
void | AddReceivedRawBytes (const unsigned char *a_Buffer, size_t a_Bytes) |
void | InterpretDeserializedFrame (const std::vector< unsigned char > &a_Payload, const HdlcFrame &a_HdlcFrame, bool a_bMessageInvalid) |
bool | IsAlive () const |
bool | IsRunning () const |
Definition at line 49 of file ProtocolState.h.
ProtocolState::ProtocolState | ( | std::shared_ptr< ISerialPortHandler > | a_SerialPortHandler, |
boost::asio::io_service & | a_IOService | ||
) |
void ProtocolState::AddReceivedRawBytes | ( | const unsigned char * | a_Buffer, |
size_t | a_Bytes | ||
) |
void ProtocolState::InterpretDeserializedFrame | ( | const std::vector< unsigned char > & | a_Payload, |
const HdlcFrame & | a_HdlcFrame, | ||
bool | a_bMessageInvalid | ||
) |
Definition at line 146 of file ProtocolState.cpp.
|
inline |
Definition at line 63 of file ProtocolState.h.
|
inline |
Definition at line 64 of file ProtocolState.h.
void ProtocolState::SendPayload | ( | const std::vector< unsigned char > & | a_Payload, |
bool | a_bReliable | ||
) |
Definition at line 106 of file ProtocolState.cpp.
void ProtocolState::Shutdown | ( | ) |
Definition at line 98 of file ProtocolState.cpp.
void ProtocolState::Start | ( | ) |
Definition at line 82 of file ProtocolState.cpp.
void ProtocolState::Stop | ( | ) |
Definition at line 90 of file ProtocolState.cpp.
void ProtocolState::TriggerNextHDLCFrame | ( | ) |
Definition at line 126 of file ProtocolState.cpp.