1#ifndef DIAG_MESSAGE_HANDLER_H
2#define DIAG_MESSAGE_HANDLER_H
4#include <doiplib/message_handler.h>
5#include <doiplib/diag_message.h>
6#include "../helper/read_data_by_identifier.h"
7#include "../../ara/diag/routing/uds_service_router.h"
18 DoipLib::DiagMessage mRequest;
21 const uint8_t cProtocolVersion;
30 std::string resourcesUrl,
31 uint8_t protocolVersion);
33 DoipLib::Message *GetMessage()
override;
36 const DoipLib::Message *request,
37 std::vector<uint8_t> &response)
const override;
A class to handle UDS messages via DoIP.
Definition: diag_message_handler.h:16
bool TryHandle(const DoipLib::Message *request, std::vector< uint8_t > &response) const override
Definition: diag_message_handler.cpp:23
DiagMessageHandler(helper::CurlWrapper *curl, std::string resourcesUrl, uint8_t protocolVersion)
Constructor.
Definition: diag_message_handler.cpp:8
Minimalist C++ wrapper of easy (blocking interface) CURL library for RESTful communication.
Definition: curl_wrapper.h:13
UDS to read data at the diagnostic server by passing the data ID (DID)
Definition: read_data_by_identifier.h:15
A class to route an UDS request to the proper service for handling.
Definition: uds_service_router.h:14
AUTOSAR application namespace.
Definition: diag_message_handler.cpp:5