Open niondir opened 6 years ago
I believe checking if a port is "alive" (without trying to read/write) can only really be done if there is some kind of reliable hardware flow control, DTR/DSR. If I'm not mistaken, what's happening here is that portClosed is found out upon a Read attempt. What do you think @cmaglie?
It would be nice to have a function on the Port that allows to check if the port is still alive.
It's already done in the
Read()
methods.On Windows:
On Linux: