Go to the first, previous, next, last section, table of contents.


makeBidirectionalMessageStream

Function: makeBidirectionalMessageStream { -> end0 end1 }
file: 10-C-utils.t
package: muf
status: alpha

The makeBidirectionalMessageStream function creates a bidirectional message stream and returns both ends. Data written to one end is read from the other.

It is currently implemented as:

: makeBidirectionalMessageStream { -> $ $ }

    makeMessageStream -> a
    makeMessageStream -> b

    a --> b$s.twin
    b --> a$s.twin

    a b   
;


Go to the first, previous, next, last section, table of contents.