SharedStreams

Description

SharedStreams introduces SharedBufferStream and SharedBidirectionalStream. SharedBufferStream is like a SharedQueue (FIFO) but for a stream ofbytes/characters instead of separate objects. It can be used as a "socket"between Squeak processes in order for them to communicate with a streamprotocol. A SharedBidirectionalStream is like a "socket" between two (or more) Squeakprocesses. Internally it uses two SharedBufferStreams, one for input and one foroutput. It handles multiple Processes at both ends. In order for the protocol to be the same no matter what side you are of thestream you can access the "other end" by calling #otherEnd.A SharedBidirectionalStream then creates a single mirror twin brotherwhich it shares the two internal SharedBufferStream with - but with the inStreamand outStream twisted.

Details

Source
SqueakMap
Dialect
squeak (65% confidence)

Categories

Networking System / OS
← Back to results