Skip to content

purpose of seteof() and reseteof() #62

@mgkuhn

Description

@mgkuhn

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

  1. eof(sp::SerialPort) = false as a minimalist implementation of that Base.IO function, or
  2. 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:

  1. Ctrl-Z = 0x1a (as on MS-DOS)?
  2. break signal?
  3. some particular modem status-line change?

Otherwise, why not simply set eof(sp::SerialPort) = false?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions