You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Roger Zaragoza edited this page Nov 11, 2016
·
1 revision
Pipes
A pipe is a buffer with one reader and one or more writers.
One session creates a pipe with a call to pipe.create (specifying the number of messages it can hold, the buffer size). This generates a random pipeid that should be sent to the writers so they start to write to the pipe.
Only the session that created the pipe can read from it with calls to pipe.read.
The writer sessions must use the pipeid received from the reader to call pipe.open and start writing to it with calls to pipe.write.
The size of the pipe passed when calling pipe.create is important. If the pipe gets full because the reader is slower than the wirters, messages are lost.