read with timeout ??

Peter Jeremy peterjeremy at optushome.com.au
Sat Aug 9 00:45:24 UTC 2008


On 2008-Aug-08 16:30:49 -0400, Chuck Robey <chuckr at telenix.org> wrote:
>such a email, I have to admit my own needs fall more into a plain-jame serial
>line, nothing a socket-oriented thing could help me with.

If this is a normal serial port then termios(4) might help:  Use
non-canonical processing with VMIN = 0 and VTIME = 10 (see the section
"Noncanonical Mode Input Processing").

-- 
Peter Jeremy
Please excuse any delays as the result of my ISP's inability to implement
an MTA that is either RFC2821-compliant or matches their claimed behaviour.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 195 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-hackers/attachments/20080809/58b8cd63/attachment.pgp


More information about the freebsd-hackers mailing list