#include <CoLa2ProtocolHandler.h>

Public Member Functions | |
| void | closeSession () override |
| CoLa2ProtocolHandler (ITransport &rTransport) | |
| std::uint16_t | getReqId () const |
| std::uint32_t | getSessionId () const |
| bool | openSession (std::uint8_t sessionTimeout) override |
| CoLaCommand | send (CoLaCommand cmd) override |
| ~CoLa2ProtocolHandler () override | |
Public Member Functions inherited from visionary::IProtocolHandler | |
| virtual bool | openSession (uint8_t sessionTimeout)=0 |
| virtual | ~IProtocolHandler ()=default |
Private Types | |
| using | ByteBuffer = std::vector< std::uint8_t > |
Private Member Functions | |
| ByteBuffer | createCommandHeader (std::size_t payloadSize, std::size_t extraReserve=0u) |
| ByteBuffer | createProtocolHeader (std::size_t payloadSize, std::size_t extraReserve=0u) |
| std::uint16_t | createReqId () |
| ByteBuffer | readProtocol () |
| parse a response on protocol level More... | |
| ByteBuffer | readResponse (std::uint32_t &rSessionId, uint16_t &rReqId) |
| read a command response packet More... | |
Private Attributes | |
| std::uint16_t | m_reqID |
| ITransport & | m_rtransport |
| std::uint32_t | m_sessionID |
Definition at line 17 of file CoLa2ProtocolHandler.h.
|
private |
Definition at line 39 of file CoLa2ProtocolHandler.h.
| visionary::CoLa2ProtocolHandler::CoLa2ProtocolHandler | ( | ITransport & | rTransport | ) |
Definition at line 19 of file CoLa2ProtocolHandler.cpp.
|
overridedefault |
|
overridevirtual |
Implements visionary::IProtocolHandler.
Definition at line 274 of file CoLa2ProtocolHandler.cpp.
|
private |
Definition at line 155 of file CoLa2ProtocolHandler.cpp.
|
private |
Definition at line 128 of file CoLa2ProtocolHandler.cpp.
|
private |
Definition at line 26 of file CoLa2ProtocolHandler.cpp.
|
inline |
Definition at line 29 of file CoLa2ProtocolHandler.h.
|
inline |
Definition at line 33 of file CoLa2ProtocolHandler.h.
|
override |
Definition at line 223 of file CoLa2ProtocolHandler.cpp.
|
private |
parse a response on protocol level
Definition at line 32 of file CoLa2ProtocolHandler.cpp.
|
private |
read a command response packet
Definition at line 107 of file CoLa2ProtocolHandler.cpp.
|
overridevirtual |
Implements visionary::IProtocolHandler.
Definition at line 182 of file CoLa2ProtocolHandler.cpp.
|
private |
Definition at line 52 of file CoLa2ProtocolHandler.h.
|
private |
Definition at line 51 of file CoLa2ProtocolHandler.h.
|
private |
Definition at line 53 of file CoLa2ProtocolHandler.h.