Diag-Client-Lib
doip_vehicle_discovery_handler.h
Go to the documentation of this file.
1 /* Diagnostic Client library
2 * Copyright (C) 2024 Avijit Dey
3 *
4 * This Source Code Form is subject to the terms of the Mozilla Public
5 * License, v. 2.0. If a copy of the MPL was not distributed with this
6 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
7 */
8 #ifndef DIAG_CLIENT_LIB_LIB_DOIP_CLIENT_CHANNEL_UDP_CHANNEL_DOIP_VEHICLE_DISCOVERY_HANDLER_H_
9 #define DIAG_CLIENT_LIB_LIB_DOIP_CLIENT_CHANNEL_UDP_CHANNEL_DOIP_VEHICLE_DISCOVERY_HANDLER_H_
10 
11 #include "common/doip_message.h"
15 
16 namespace doip_client {
17 namespace channel {
18 namespace udp_channel {
19 
20 // Forward declaration
21 class DoipUdpChannel;
22 
27  public:
36 
41 
47  void ProcessVehicleAnnouncementResponse(DoipMessage &doip_payload) noexcept;
48 
49  private:
54 
58  std::unique_ptr<VehicleDiscoveryHandlerImpl> handler_impl_;
59 };
60 
61 } // namespace udp_channel
62 } // namespace channel
63 } // namespace doip_client
64 #endif //DIAG_CLIENT_LIB_LIB_DOIP_CLIENT_CHANNEL_UDP_CHANNEL_DOIP_VEHICLE_DISCOVERY_HANDLER_H_
Immutable class to store received doip message.
Definition: doip_message.h:21
Class to manage a udp channel as per DoIP protocol.
Class used as a handler to process vehicle announcement messages.
~VehicleDiscoveryHandler()
Destruct an instance of VehicleDiscoveryHandler.
void ProcessVehicleAnnouncementResponse(DoipMessage &doip_payload) noexcept
Function to process received vehicle announcement response.
VehicleDiscoveryHandler(sockets::UdpSocketHandler &udp_socket_handler, DoipUdpChannel &channel)
Constructs an instance of VehicleDiscoveryHandler.
std::unique_ptr< VehicleDiscoveryHandlerImpl > handler_impl_
Stores the Handler implementation.
Class used to create a udp socket for handling transmission and reception of udp message from driver.