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 47 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 53 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 60 of file ParseTCPPacket.cpp.
 
 
  
  
      
        
          | uint8_t sick::data_processing::ParseTCPPacket::readCommandMode  | 
          ( | 
          const uint8_t *&  | 
          data_ptr | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | uint8_t sick::data_processing::ParseTCPPacket::readCommandType  | 
          ( | 
          const uint8_t *&  | 
          data_ptr | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | void sick::data_processing::ParseTCPPacket::readData  | 
          ( | 
          const datastructure::PacketBuffer &  | 
          buffer,  | 
         
        
           | 
           | 
          std::vector< uint8_t > &  | 
          byteVector  | 
         
        
           | 
          ) | 
           |  const | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | uint16_t sick::data_processing::ParseTCPPacket::readErrorCode  | 
          ( | 
          const uint8_t *&  | 
          data_ptr | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | uint8_t sick::data_processing::ParseTCPPacket::readHubCntr  | 
          ( | 
          const uint8_t *&  | 
          data_ptr | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | uint32_t sick::data_processing::ParseTCPPacket::readLength  | 
          ( | 
          const uint8_t *&  | 
          data_ptr | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | uint8_t sick::data_processing::ParseTCPPacket::readNoC  | 
          ( | 
          const uint8_t *&  | 
          data_ptr | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | uint16_t sick::data_processing::ParseTCPPacket::readRequestID  | 
          ( | 
          const uint8_t *&  | 
          data_ptr | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | uint32_t sick::data_processing::ParseTCPPacket::readSessionID  | 
          ( | 
          const uint8_t *&  | 
          data_ptr | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
  
  
      
        
          | uint32_t sick::data_processing::ParseTCPPacket::readSTx  | 
          ( | 
          const uint8_t *&  | 
          data_ptr | ) | 
           const | 
         
       
   | 
  
private   | 
  
 
 
The documentation for this class was generated from the following files: