The API documented by this module permits to implement objects refering to byte streams. These objects can receive data from the bytestream and send data to the byte stream.
An i/o object can check if a given object implements an FTS byte stream and whether it is an input and/or an output using the functions fts_bytestream_check(), fts_bytestream_is_input() and fts_bytestream_is_output(). The API provides functions for declaring an object as a listener to a byte stream (see fts_bytestream_add_listener()) and output functions sending events to a byte stream (see fts_bytestream_output()).
|
Register listener to a byte stream. In order to receive incoming data from a byte stream, an FTS object registers itself as a listener to the byte stream.
|
|
Check whether an FTS object implements the byte stream abstraction. An object who wants to listen to or output via a byte stream should check if the object it referes to implements the byte stream abstraction
|
|
Flush byte streams output buffer (if any).
|
|
Check whether an FTS byte stream is an input.
|
|
Check whether an FTS byte stream is an input.
|
|
Send a string to a byte stream.
|
|
Send a single character to a byte stream.
|
|
Remove listener from a byte stream. An object listening to a byte stream must be removed as listener before being destroyed. Typically this is done in the object's delete method.
|