Previous: , Up: Fibers   [Contents][Index]


5.14.7 Streams

The (fibers streams) module provides an interface for wrapping web stream objects from the host with Scheme ports.

Procedure: open-input-stream stream

Return an input port that reads from stream, an external reference to a stream.

Procedure: open-output-stream stream

Return an output port that writes to stream, an external reference to a stream.

Variable: standard-input-stream

An input port that reads from the host’s standard input stream.

Variable: standard-output-stream

An output port that writes to the host’s standard output stream.

Variable: standard-error-stream

An output port that writes to the host’s standard error stream.