next up previous contents index
Next: 5.7.5 flush: Discared buffered Up: 5.7 oskit_ttystream: Interface to Previous: 5.7.3 sendbreak: Send a

5.7.4 drain: Wait until all buffered output has been transmitted

 

SYNOPSIS

#include <oskit/io/ttystream.h>

OSKIT_COMDECL drain(oskit_ttystream_t *tty);

DESCRIPTION

This method waits until any buffered output data that has been written to the stream is successfully transmitted. This method corresponds to the POSIX tcdrain function; see the POSIX standard for details.

PARAMETERS

tty
The TTY stream object to drain.

RETURNS

Returns 0 on success, or an error code specified in <oskit/error.h>, on error.



University of Utah Flux Research Group