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. | |
Class to handle DoIP requests.
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.
poller | Global poller for network communication |
curl | Configured CURL instance for RESTful communication |
resourcesUrl | Connected vehicle resources access RESTful URL |
ipAddress | DoIP server listening IPv4 address |
port | DoIP server TCP listening port number |
config | DoIP controller configuration |
vin | Vehicle Identification Number |
logicalAddress | Vehicle logical address for DoIP communication |
eid | DoIP communication entity ID |
gid | DoIP communication group ID |
std::runtime_error | Throws when the TCP connection configuration failed |