#include <protocol_handler.h>
Definition at line 22 of file protocol_handler.h.
 
◆ UdsTransportProtocolHandlerId
◆ InitializationResult
Definitions of different initialization result. 
| Enumerator | 
|---|
| kInitializeOk  |  | 
| kInitializeFailed  |  | 
Definition at line 32 of file protocol_handler.h.
   32 : std::uint8_t { kInitializeOk = 0, kInitializeFailed = 1 };
 
 
 
 
◆ UdsTransportProtocolHandler()
Constructs an instance of UdsTransportProtocolHandler. 
- Parameters
 - 
  
    | [in] | handler_id | The id of this transport protocol handler  | 
    | [in] | transport_protocol_mgr | The reference to transport protocol manager  | 
  
   
Definition at line 41 of file protocol_handler.h.
UdsTransportProtocolHandlerId handler_id_
Store the handler id.
 
 
 
 
◆ ~UdsTransportProtocolHandler()
  
  
      
        
          | virtual uds_transport::UdsTransportProtocolHandler::~UdsTransportProtocolHandler  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
virtualdefault   | 
  
 
 
◆ CreateTcpConnection()
  
  
      
        
          | virtual std::unique_ptr<Connection> uds_transport::UdsTransportProtocolHandler::CreateTcpConnection  | 
          ( | 
          ConversionHandler &  | 
          conversion_handler,  | 
         
        
           | 
           | 
          std::string_view  | 
          tcpIpaddress,  | 
         
        
           | 
           | 
          uint16_t  | 
          portNum  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
pure virtual   | 
  
 
Function to create a new Tcp connection. 
- Parameters
 - 
  
    | [in] | conversation | The conversation handler used by tcp connection to communicate  | 
    | [in] | tcp_ip_address | The local tcp ip address  | 
    | [in] | port_num | The local port number  | 
  
   
- Returns
 - The unique pointer to Connection created 
 
 
 
◆ CreateUdpConnection()
  
  
      
        
          | virtual std::unique_ptr<Connection> uds_transport::UdsTransportProtocolHandler::CreateUdpConnection  | 
          ( | 
          ConversionHandler &  | 
          conversion_handler,  | 
         
        
           | 
           | 
          std::string_view  | 
          udpIpaddress,  | 
         
        
           | 
           | 
          uint16_t  | 
          portNum  | 
         
        
           | 
          ) | 
           |  | 
         
       
   | 
  
pure virtual   | 
  
 
Function to create a new Udp connection. 
- Parameters
 - 
  
    | [in] | conversation | The conversation handler used by tcp connection to communicate  | 
    | [in] | udp_ip_address | The local udp ip address  | 
    | [in] | port_num | The local port number  | 
  
   
- Returns
 - The unique pointer to Connection created 
 
 
 
◆ GetHandlerID()
◆ Initialize()
◆ Start()
  
  
      
        
          | virtual void uds_transport::UdsTransportProtocolHandler::Start  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ Stop()
  
  
      
        
          | virtual void uds_transport::UdsTransportProtocolHandler::Stop  | 
          ( | 
           | ) | 
           | 
         
       
   | 
  
pure virtual   | 
  
 
 
◆ handler_id_
The documentation for this class was generated from the following file:
- /home/runner/work/diag-client-lib/diag-client-lib/diag-client-lib/lib/uds-transport-layer-api/uds_transport/protocol_handler.h