[Gambas-bugtracker] Bug #1956: Feature Request: Flush Buffer Function for Serial Ports (gb.net)

bugtracker at gambaswiki.org bugtracker at gambaswiki.org
Sun Nov 8 21:13:36 CET 2020


http://gambaswiki.org/bugtracker/edit?object=BUG.1956&from=L21haW4-

Comment #1 by Benoît MINISINI:

A few remarks and questions:

1) 'Flush' keyword means flushing the output in Gambas, not discarding it. So another word must be used.

2) Discarding is done with the tcflush() glibc function. Maybe it's internally the same things than your ioctl, I don't know.

3) There is two buffers to discard: input and output. So maybe two methods are needed.

4) If it's a security issue, why not automatically discarding the buffers if you call the Close() method?

5) I don't use serial ports, so I don't see what "unsuccessful hardware handshake timeout" means. The guy who programmed the SerialPort class made events only for serial port property changes by polling it.

Benoît MINISINI changed the state of the bug to: NeedsInfo.




More information about the Bugtracker mailing list