ToC DocOverview CGDoc RelNotes Index PermutedIndex
Allegro CL
Home Previous Up Next Table of Contents Index
  ANSI Common Lisp   21 Streams   21.2 Dictionary of Streams

21.2.45 make-echo-stream Function

Syntax:

make-echo-stream input-stream output-stream    echo-stream

Arguments and Values:
input-stream - an input stream.

output-stream - an output stream.

echo-stream - an echo stream.

Description:
Creates and returns an echo stream that takes input from input-stream and sends output to output-stream.

Examples:
 (let ((out (make-string-output-stream)))
    (with-open-stream 
        (s (make-echo-stream
            (make-string-input-stream "this-is-read-and-echoed")
            out))
      (read s)
      (format s " * this-is-direct-output")
      (get-output-stream-string out)))
 "this-is-read-and-echoed * this-is-direct-output"

See Also:
echo-stream-input-stream, echo-stream-output-stream, make-two-way-stream

Allegro CL Implementation Details:
None.

Home Previous Up Next Table of Contents Index
© Franz Inc. 1998-2017 - File last updated 01-11-2017