Parser for an incoming TCP packet.
More...
#include <ParseTCPPacket.h>
Parser for an incoming TCP packet.
Definition at line 59 of file ParseTCPPacket.h.
sick::data_processing::ParseTCPPacket::ParseTCPPacket |
( |
| ) |
|
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.
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.
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.
uint8_t sick::data_processing::ParseTCPPacket::readCommandMode |
( |
std::vector< uint8_t >::const_iterator |
data_ptr | ) |
const |
|
private |
uint8_t sick::data_processing::ParseTCPPacket::readCommandType |
( |
std::vector< uint8_t >::const_iterator |
data_ptr | ) |
const |
|
private |
uint16_t sick::data_processing::ParseTCPPacket::readErrorCode |
( |
std::vector< uint8_t >::const_iterator |
data_ptr | ) |
const |
|
private |
uint8_t sick::data_processing::ParseTCPPacket::readHubCntr |
( |
std::vector< uint8_t >::const_iterator |
data_ptr | ) |
const |
|
private |
uint32_t sick::data_processing::ParseTCPPacket::readLength |
( |
std::vector< uint8_t >::const_iterator |
data_ptr | ) |
const |
|
private |
uint8_t sick::data_processing::ParseTCPPacket::readNoC |
( |
std::vector< uint8_t >::const_iterator |
data_ptr | ) |
const |
|
private |
uint16_t sick::data_processing::ParseTCPPacket::readRequestID |
( |
std::vector< uint8_t >::const_iterator |
data_ptr | ) |
const |
|
private |
uint32_t sick::data_processing::ParseTCPPacket::readSessionID |
( |
std::vector< uint8_t >::const_iterator |
data_ptr | ) |
const |
|
private |
uint32_t sick::data_processing::ParseTCPPacket::readSTx |
( |
std::vector< uint8_t >::const_iterator |
data_ptr | ) |
const |
|
private |
The documentation for this class was generated from the following files: