ioprocs.occ
streamMux
PROC streamMux ([]CHAN OF BYTE in, CHAN OF BYTE out, VAL BYTE BreakCh)
-
This is a simple 'fair alt' multiplexer
which locks into any one of the input channels until
the channel sends BreakCh or EndStream;
streamMuxNL
PROC streamMuxNL ([]CHAN OF BYTE in, CHAN OF BYTE out)
-
This is a simple 'fair alt' multiplexer
which locks into any one of the input channels until
the channel sends '*n' or EndStream;
streamMux2
PROC streamMux2 (VAL []BYTE MuxName, []CHAN OF BYTE in, CHAN OF BYTE out)
-
This is a 'fair alt' multiplexer
which locks into any one of the input channels until:
the channel sends NL or EndStream;
the timeout elapses.
It can accept a MuxName which gets printed whenver changeover between
input channels occurs.
DebugStream
PROC DebugStream (CHAN OF BYTE in, out)
streamForward - forward byte stream
PROC streamForward (CHAN OF BYTE in, out)
-
Copies bytes from 'in' to 'out'. Terminates when EndStream is
received; the EndStream is also output.
streamTee - forward byte stream
PROC streamTee (CHAN OF BYTE screen, []CHAN OF BYTE out)
-
Duplicates characters from its input to all its outputs.
Terminates upon receipt of EndStream, which is also output.
streamSink - sink tty Stream
PROC streamSink (CHAN OF BYTE in)
-
Consume all input until EndStream is received.
streamCoupler
PROC streamCoupler (CHAN OF BYTE in, out)
-
Copy all input until EndStream is received.
N.B. EndStream is NOT passed to 'out'.
Can be used to prevent EndStream being passed on.
streamFifo
PROC streamFifo (CHAN OF BYTE in, out, []BYTE buffer, VAL BOOL overwritingEnabled)
-
The input and output protocol is CHAN OF BYTE as per Writes library.
When EndStream is received, textFifo terminates and passes the
EndStream out.
Generated by occam2html.