#include <oskit/io/ttystream.h>OSKIT_COMDECL flow(oskit_ttystream_t *tty, int action);
This method controls the transmission or reception of data on this TTY stream. This method corresponds to the POSIX tcflow function; see the POSIX standard for details.
- tty
- The TTY stream object to control.
- action
- Must be one of the following:
- OSKIT_TCOOFF
- Suspend output.
- OSKIT_TCOON
- Restart output.
- OSKIT_TCIOFF
- Transmit a STOP character.
- OSKIT_TCION
- Transmit a START character.
Returns 0 on success, or an error code specified in <oskit/error.h>, on error.