factor/library/io/duplex-stream.facts

9 lines
571 B
Plaintext
Raw Normal View History

2006-01-16 02:48:15 -05:00
USING: help io ;
HELP: duplex-stream f
{ $description "A bidirectional stream delegating to a pair of streams, sending input to one delegate and output to another." } ;
HELP: <duplex-stream> "( in out -- stream )"
{ $values { "in" "an input stream" } { "out" "an output stream" } { "stream" " a bidirectional stream" } }
{ $description "Creates a duplex stream. Writing to a duplex stream will write to " { $snippet "out" } ", and reading from a duplex stream will read from " { $snippet "in" } ". Closing a duplex stream closes both the input and output streams." } ;