1 This directory contains a test example for the DEV_SAP
2 class category. It implements a class TTY_IO that is
3 derived from ACE_DEV_IO and adds a control method
4 with specific features for a serial line connection
5 (e.g. /dev/ttya and /dev/ttyb on UNIX systems).
7 The reader/reader executable initializes its
8 device-special file (given as command-line parameter),
9 reads characters from it (until it recognizes character 'q')
10 and sends the characters read to stdout.
12 The writer/writer executable also initializes its
13 device-special file (given as command-line parameter),
14 reads characters from stdin (until'q') and sends them
17 To run the tests I connect /dev/ttya and /dev/ttyb (with a
18 zero modem cable) and start the reader with "reader /dev/ttya"
19 and the writer (in a different window) with "writer /dev/ttyb".
21 Characters typed in the writer window should now appear as output
22 in the reader window. Note that characters are buffered till EOL.