This PR attempts to fix the distributed simulation nullary connections issues that arise from sudden disconnection on the USB serial level, however not only on serial4j, but also a generalized solution is being attained in this PR via a file status filestat API through the electrostatic-core, so that it would be compatible with the server sockets and pci devices, too.
In this PR, the following is attained:
[x] File stat core API.
[x] File stat core example.
[x] Integration into serial4j-native.
[x] Modification of serial4j-native by adding an equivalent C++ SerialPort class that keeps track of the port data, while also keeping a tight data associations among the native TerminalDevice .
[x] Modification of the ErrnoToException Java utility and the SerialThrowable interface to write extra messages.
[x] Modification of the test JoystickCarExample to enable listening for exceptional program flow (i.e., nullary connections).
This PR attempts to fix the distributed simulation nullary connections issues that arise from sudden disconnection on the USB serial level, however not only on serial4j, but also a generalized solution is being attained in this PR via a file status filestat API through the
electrostatic-core
, so that it would be compatible with the server sockets and pci devices, too.In this PR, the following is attained:
SerialPort
class that keeps track of the port data, while also keeping a tight data associations among the nativeTerminalDevice
.ErrnoToException
Java utility and theSerialThrowable
interface to write extra messages.JoystickCarExample
to enable listening for exceptional program flow (i.e., nullary connections).