8 #ifndef DIAGNOSTIC_CLIENT_LIB_LIB_UDS_TRANSPORT_LAYER_API_UDS_TRANSPORT_PROTOCOL_HANDLER_H 
    9 #define DIAGNOSTIC_CLIENT_LIB_LIB_UDS_TRANSPORT_LAYER_API_UDS_TRANSPORT_PROTOCOL_HANDLER_H 
   13 #include <string_view> 
   20 class ConversionHandler;
 
   83                                                           std::string_view tcpIpaddress,
 
   84                                                           uint16_t portNum) = 0;
 
   97                                                           std::string_view udpIpaddress,
 
   98                                                           uint16_t portNum) = 0;
 
Class to manage reception from transport protocol handler to connection handler.
 
virtual std::unique_ptr< Connection > CreateUdpConnection(ConversionHandler &conversion_handler, std::string_view udpIpaddress, uint16_t portNum)=0
Function to create a new Udp connection.
 
std::uint8_t UdsTransportProtocolHandlerId
Type alias for handler id.
 
virtual std::unique_ptr< Connection > CreateTcpConnection(ConversionHandler &conversion_handler, std::string_view tcpIpaddress, uint16_t portNum)=0
Function to create a new Tcp connection.
 
virtual UdsTransportProtocolHandlerId GetHandlerID() const
Function to get the handler id.
 
UdsTransportProtocolHandlerId handler_id_
Store the handler id.
 
virtual void Start()=0
Function to start the handler.
 
UdsTransportProtocolHandler(UdsTransportProtocolHandlerId const handler_id, UdsTransportProtocolMgr const &)
Constructs an instance of UdsTransportProtocolHandler.
 
virtual ~UdsTransportProtocolHandler()=default
Destruct an instance of UdsTransportProtocolHandler.
 
InitializationResult
Definitions of different initialization result.
 
virtual InitializationResult Initialize()=0
Function to initialize the handler.
 
virtual void Stop()=0
Function to stop the handler.