Parser for an incoming TCP packet.
More...
#include <ParseTCPPacket.h>
Parser for an incoming TCP packet.
Definition at line 59 of file ParseTCPPacket.h.
◆ ParseTCPPacket()
sick::data_processing::ParseTCPPacket::ParseTCPPacket |
( |
| ) |
|
◆ getExpectedPacketLength()
Gets the expected packet length for a buffer.
- Parameters
-
buffer | The incoming tcp packet. |
- Returns
- Expected length of the incoming packet buffer.
Definition at line 44 of file ParseTCPPacket.cpp.
◆ getRequestID()
Gets the request ID of the incoming tcp packet.
- Parameters
-
buffer | The incoming tcp packet. |
- Returns
- The request ID of the incoming packet buffer.
Definition at line 52 of file ParseTCPPacket.cpp.
◆ parseTCPSequence()
Parse the tcp sequence to get the header information of the cola2 protocol.
- Parameters
-
buffer | The incoming tcp connection. |
command | Reference to the command and set the returned method type and mode and the data. |
- Returns
- If parsing was successful.
Definition at line 61 of file ParseTCPPacket.cpp.
◆ readCommandMode()
uint8_t sick::data_processing::ParseTCPPacket::readCommandMode |
( |
std::vector< uint8_t >::const_iterator |
data_ptr | ) |
const |
|
private |
◆ readCommandType()
uint8_t sick::data_processing::ParseTCPPacket::readCommandType |
( |
std::vector< uint8_t >::const_iterator |
data_ptr | ) |
const |
|
private |
◆ readData()
◆ readErrorCode()
uint16_t sick::data_processing::ParseTCPPacket::readErrorCode |
( |
std::vector< uint8_t >::const_iterator |
data_ptr | ) |
const |
|
private |
◆ readHubCntr()
uint8_t sick::data_processing::ParseTCPPacket::readHubCntr |
( |
std::vector< uint8_t >::const_iterator |
data_ptr | ) |
const |
|
private |
◆ readLength()
uint32_t sick::data_processing::ParseTCPPacket::readLength |
( |
std::vector< uint8_t >::const_iterator |
data_ptr | ) |
const |
|
private |
◆ readNoC()
uint8_t sick::data_processing::ParseTCPPacket::readNoC |
( |
std::vector< uint8_t >::const_iterator |
data_ptr | ) |
const |
|
private |
◆ readRequestID()
uint16_t sick::data_processing::ParseTCPPacket::readRequestID |
( |
std::vector< uint8_t >::const_iterator |
data_ptr | ) |
const |
|
private |
◆ readSessionID()
uint32_t sick::data_processing::ParseTCPPacket::readSessionID |
( |
std::vector< uint8_t >::const_iterator |
data_ptr | ) |
const |
|
private |
◆ readSTx()
uint32_t sick::data_processing::ParseTCPPacket::readSTx |
( |
std::vector< uint8_t >::const_iterator |
data_ptr | ) |
const |
|
private |
◆ setCommandValuesFromPacket()
The documentation for this class was generated from the following files: