cs::Port - an I/O pairing of a cs::Source and cs::Sink
use cs::Port;
A cs::Port is a subclass of cs::Port tttached to the supplied command.
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.
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.
NRead()
Called on the cs::Source.
Flush()
Called on the cs::Sink.
cs::Source(3), cs::Sink(3)
Cameron Simpson <cs@zip.com.au>