Name
mkpipe — Creates a pipe
Synopsis
mkpipe -i|o pipe advertisement
Description
mkpipe
creates an input pipe or an output
pipe from a given pipe advertisement document. In order for pipes to
communicate, an input and output pipe need to be created with the
same pipe advertisement.
An input pipe can be bound to the same pipe advertisement on multiple peers transparently to the output pipe. The output pipe does not need to know on which physical peer the input pipe is located. To communicate with the pipe, the output pipe needs to search for the input pipe that binds the advertisement.
Options
-
-i Creates an input pipe
-
-o Creates an output pipe
Example
JXTA>pipeadv = mkadv -pJXTA>inpipe = mkpipe -i pipeadvJXTA>msg = recv inpipeJXTA>data = get msg mytag
This example creates a pipe advertisement
(pipeadv), creates an input pipe
(inpipe), and receives a message
(msg) over the pipe. The body of the message
associated with the mytag tag is then retrieved
from the message via the get command.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access