Woman, Life, Freedom


Adaptive AUTOSAR
ARA public interface header documentation
application::doip::DoipServer Class Reference

Class to handle DoIP requests. More...

#include <doip_server.h>

Public Member Functions

 DoipServer (AsyncBsdSocketLib::Poller *poller, helper::CurlWrapper *curl, std::string resourcesUrl, std::string ipAddress, uint16_t port, DoipLib::ControllerConfig &&config, std::string &&vin, uint16_t logicalAddress, uint64_t eid, uint64_t gid)
 Constructor. More...
 

Static Public Attributes

static constexpr size_t cDoipPacketSize {64}
 Maximum DoIP packet size.
 

Detailed Description

Class to handle DoIP requests.

Constructor & Destructor Documentation

◆ DoipServer()

application::doip::DoipServer::DoipServer ( AsyncBsdSocketLib::Poller *  poller,
helper::CurlWrapper curl,
std::string  resourcesUrl,
std::string  ipAddress,
uint16_t  port,
DoipLib::ControllerConfig &&  config,
std::string &&  vin,
uint16_t  logicalAddress,
uint64_t  eid,
uint64_t  gid 
)

Constructor.

Parameters
pollerGlobal poller for network communication
curlConfigured CURL instance for RESTful communication
resourcesUrlConnected vehicle resources access RESTful URL
ipAddressDoIP server listening IPv4 address
portDoIP server TCP listening port number
configDoIP controller configuration
vinVehicle Identification Number
logicalAddressVehicle logical address for DoIP communication
eidDoIP communication entity ID
gidDoIP communication group ID
Exceptions
std::runtime_errorThrows when the TCP connection configuration failed