8 #ifndef DIAG_CLIENT_LIB_LIB_DOIP_CLIENT_CHANNEL_UDP_CHANNEL_DOIP_UDP_CHANNEL_HANDLER_H_
9 #define DIAG_CLIENT_LIB_LIB_DOIP_CLIENT_CHANNEL_UDP_CHANNEL_DOIP_UDP_CHANNEL_HANDLER_H_
22 namespace udp_channel {
93 std::uint16_t payload_type) noexcept -> bool;
Immutable class to store received doip message.
RxSocketType
Definition of socket type from where the request was received.
Class to handle udp received messages from lower layer.
std::mutex channel_handler_lock
Mutex to protect critical section.
auto ProcessDoIPHeader(DoipMessage &doip_rx_message, std::uint8_t &nack_code) noexcept -> bool
Function to process doip header in received response.
VehicleDiscoveryHandler vehicle_discovery_handler_
Handler to process vehicle discovery messages.
sockets::UdpSocketHandler::MessagePtr UdpMessagePtr
Type alias for Tcp message pointer.
auto SendVehicleIdentificationRequest(uds_transport::UdsMessageConstPtr vehicle_identification_request) noexcept -> uds_transport::UdsTransportProtocolMgr::TransmissionResult
Function to vehicle identification request to the connected network.
void ProcessDoIPPayload(DoipMessage &doip_payload, DoipMessage::RxSocketType socket_type=DoipMessage::RxSocketType::kUnicast)
Function to process the doip payload.
VehicleIdentificationHandler vehicle_identification_handler_
Handler to process vehicle identification req/res messages.
DoipUdpChannelHandler(sockets::UdpSocketHandler &udp_socket_handler_broadcast, sockets::UdpSocketHandler &udp_socket_handler_unicast, DoipUdpChannel &channel)
Constructs an instance of DoipUdpChannelHandler.
void HandleMessageUnicast(UdpMessagePtr udp_rx_message) noexcept
Function to process the received unicast udp message.
static auto ProcessDoIPPayloadLength(std::uint32_t payload_len, std::uint16_t payload_type) noexcept -> bool
Function to verify payload length of various payload type.
void HandleMessageBroadcast(UdpMessagePtr udp_rx_message) noexcept
Function to process the received broadcast udp message.
Class to manage a udp channel as per DoIP protocol.
Class used as a handler to process vehicle announcement messages.
Class used as a handler to process vehicle identification req/ res messages.
Handler class to manage different socket of various client (Udp / Tcp)
typename Client::MessagePtr MessagePtr
Type alias for message pointer.
std::unique_ptr< const UdsMessage > UdsMessageConstPtr