Device: Add GetComponentVersions and GetSupportedFeatures commands

Driver: Fix re-open and failed open cases for TCP

Also enforces even length packets for the RED2, FIRE3, and FIRE3 FlexRay devices.
This commit is contained in:
Jonathan Schwartz
2023-05-08 21:07:43 +00:00
parent b6d9ef4c7e
commit 32900ae263
22 changed files with 303 additions and 23 deletions
+2 -2
View File
@@ -3,7 +3,7 @@
#ifdef __cplusplus
#include <optional>
#include <memory>
#include "icsneo/communication/driver.h"
#include "icsneo/device/founddevice.h"
@@ -45,7 +45,7 @@ private:
NetworkInterface interface;
uint32_t dstIP;
uint16_t dstPort;
std::optional<Socket> socket;
std::unique_ptr<Socket> socket;
void readTask() override;
void writeTask() override;
};