|
Diag-Client-Lib
|
Class used as a handler to process vehicle identification req/ res messages. More...
#include <doip_vehicle_identification_handler.h>
Classes | |
| class | VehicleIdentificationHandlerImpl |
| Class implements vehicle identification handler. More... | |
Public Types | |
| using | UdpMessagePtr = sockets::UdpSocketHandler::MessagePtr |
| Type alias for Tcp message pointer. More... | |
| using | UdpMessage = sockets::UdpSocketHandler::Message |
| Type alias for Udp message. More... | |
Public Member Functions | |
| VehicleIdentificationHandler (sockets::UdpSocketHandler &udp_socket_handler, DoipUdpChannel &channel) | |
| Constructs an instance of VehicleIdentificationHandler. More... | |
| ~VehicleIdentificationHandler () | |
| Destruct an instance of VehicleIdentificationHandler. More... | |
| auto | HandleVehicleIdentificationRequest (uds_transport::UdsMessageConstPtr vehicle_identification_request) noexcept -> uds_transport::UdsTransportProtocolMgr::TransmissionResult |
| Function to handle sending of vehicle identification request. More... | |
| void | ProcessVehicleIdentificationResponse (DoipMessage &doip_payload) noexcept |
| Function to process received vehicle identification response. More... | |
Private Member Functions | |
| auto | SendVehicleIdentificationRequest (uds_transport::UdsMessageConstPtr vehicle_identification_request) noexcept -> uds_transport::UdsTransportProtocolMgr::TransmissionResult |
| Function to send vehicle identification request. More... | |
Private Attributes | |
| std::unique_ptr< VehicleIdentificationHandlerImpl > | handler_impl_ |
| Stores the Handler implementation. More... | |
Class used as a handler to process vehicle identification req/ res messages.
Definition at line 26 of file doip_vehicle_identification_handler.h.
| using doip_client::channel::udp_channel::VehicleIdentificationHandler::UdpMessage = sockets::UdpSocketHandler::Message |
Type alias for Udp message.
Definition at line 36 of file doip_vehicle_identification_handler.h.
| using doip_client::channel::udp_channel::VehicleIdentificationHandler::UdpMessagePtr = sockets::UdpSocketHandler::MessagePtr |
Type alias for Tcp message pointer.
Definition at line 31 of file doip_vehicle_identification_handler.h.
| doip_client::channel::udp_channel::VehicleIdentificationHandler::VehicleIdentificationHandler | ( | sockets::UdpSocketHandler & | udp_socket_handler, |
| DoipUdpChannel & | channel | ||
| ) |
Constructs an instance of VehicleIdentificationHandler.
| [in] | udp_socket_handler | The reference to socket handler |
| [in] | channel | The reference to doip udp channel |
Definition at line 278 of file doip_vehicle_identification_handler.cpp.
|
default |
Destruct an instance of VehicleIdentificationHandler.
|
noexcept |
Function to handle sending of vehicle identification request.
| [in] | vehicle_identification_request | The vehicle identification request |
Definition at line 285 of file doip_vehicle_identification_handler.cpp.
References FILE_NAME, doip_client::logger::DoipClientLogger::GetDiagClientLogger(), doip_client::kDoIPCtrl, uds_transport::UdsTransportProtocolMgr::kTransmitFailed, and uds_transport::UdsTransportProtocolMgr::kTransmitOk.

|
noexcept |
Function to process received vehicle identification response.
| [in] | doip_payload | The doip message received |
Definition at line 325 of file doip_vehicle_identification_handler.cpp.
References uds_transport::UdsTransportProtocolMgr::kIndicationOk, and uds_transport::UdsMessage::kPhysical.
Referenced by doip_client::channel::udp_channel::DoipUdpChannelHandler::ProcessDoIPPayload().

|
privatenoexcept |
Function to send vehicle identification request.
| [in] | vehicle_identification_request | The vehicle identification request |
Definition at line 355 of file doip_vehicle_identification_handler.cpp.
References doip_client::channel::udp_channel::anonymous_namespace{doip_vehicle_identification_handler.cpp}::CreateDoipGenericHeader(), doip_client::channel::udp_channel::anonymous_namespace{doip_vehicle_identification_handler.cpp}::GetVehicleIdentificationPayloadType(), doip_client::kDoip_VehicleIdentification_ReqType, doip_client::kDoipheadrSize, uds_transport::UdsTransportProtocolMgr::kTransmitFailed, and uds_transport::UdsTransportProtocolMgr::kTransmitOk.

|
private |
Stores the Handler implementation.
Definition at line 91 of file doip_vehicle_identification_handler.h.