NAME

cs::Port - an I/O pairing of a cs::Source and cs::Sink


SYNOPSIS

use cs::Port;


DESCRIPTION

A cs::Port is a subclass of cs::Port tttached to the supplied command.


OBJECT CREATION

new cs::Port (source,sink)

Return a wrapper for the source and sink pair supplied. source is normally a cs::Source object but may be a filehandle. sink is normally a cs::Sink object but may be a filehandle. If sink is omitted and source is a filehandle then sink is taken to be the same file handle.


OBJECT METHODS

Most of the cs::Source and cs::Sink methods can be called on a cs::Port and they will be handled by the source or sink as appropriate.

Source()

Return the cs::Source.

Sink()

Return the cs::Sink.

SourceHandle()

Return the file handle of the cs::Source, if any.

SinkHandle()

Return the file handle of the cs::Sink, if any.

Get(), GetLine(), GetContLine(), Read(), NRead()

Called on the cs::Source.

Put(), PutFlush(), Flush()

Called on the cs::Sink.


SEE ALSO

cs::Source(3), cs::Sink(3)


AUTHOR

Cameron Simpson <cs@zip.com.au>