What's the purpose (“use case”) of method seteof() in the high-level API? It seems currently the sole way to influence the return value of eof().
A serial port does not really have any notion of “file” and therefore no inherent way of communicating an “end of file” condition. So I would have expected either
eof(sp::SerialPort) = false as a minimalist implementation of that Base.IO function, or
- methods to define some EOF symbol that, if received, will cause
eof() == true after the preceding byte has been read.
Are there any particular EOF signals that people would like to be interpreted that way? For example:
- Ctrl-Z =
0x1a (as on MS-DOS)?
- break signal?
- some particular modem status-line change?
Otherwise, why not simply set eof(sp::SerialPort) = false?
What's the purpose (“use case”) of method
seteof()in the high-level API? It seems currently the sole way to influence the return value ofeof().A serial port does not really have any notion of “file” and therefore no inherent way of communicating an “end of file” condition. So I would have expected either
eof(sp::SerialPort) = falseas a minimalist implementation of thatBase.IOfunction, oreof() == trueafter the preceding byte has been read.Are there any particular EOF signals that people would like to be interpreted that way? For example:
0x1a(as on MS-DOS)?Otherwise, why not simply set
eof(sp::SerialPort) = false?