A class to route an UDS request to the proper service for handling. More...
#include <uds_service_router.h>
Public Member Functions | |
void | AddService (RoutableUdsService *service) |
Add a service to the router. More... | |
void | RemoveService (uint8_t sid) |
Remove a service from the router. More... | |
std::future< OperationOutput > | Route (const std::vector< std::uint8_t > &requestData, MetaInfo &metaInfo, CancellationHandler &&cancellationHandler) const |
Route an UDS request message to a service. More... | |
A class to route an UDS request to the proper service for handling.
void ara::diag::routing::UdsServiceRouter::AddService | ( | RoutableUdsService * | service | ) |
Add a service to the router.
service | Service to be added |
void ara::diag::routing::UdsServiceRouter::RemoveService | ( | uint8_t | sid | ) |
Remove a service from the router.
sid | SID of the service to be removed |
std::future< OperationOutput > ara::diag::routing::UdsServiceRouter::Route | ( | const std::vector< std::uint8_t > & | requestData, |
MetaInfo & | metaInfo, | ||
CancellationHandler && | cancellationHandler | ||
) | const |
Route an UDS request message to a service.
requestData | Request message byte array |
metaInfo | Request message metainfo |
cancellationHandler | Callack to be invoked when the current conversation is cancelled |