Name
mkmsg — Creates a pipe message
Synopsis
mkmsg
Description
mkmsg
creates a new message that can
be used to send or receive data from a pipe. The message object is
stored in an environment variable. If no variable is assigned via the
= operator, a default environment variable named
env
# is automatically
created (# is a growing integer number).
JXTA messages are composed of multiple
tag body parts. Each tag body is identified via a unique tag name.
The tag name is used to insert (put) a new tag
body in a message or retrieve (get) a tag body
from a message.
Example
JXTA>mkmsgThis creates a message object and puts it in the
env
# environment
variable, in which # is an integer number.
JXTA>mymsg = mkmsgJXAT>put mymsg mytag dataJXTA>send outpipe mymsg
This creates a new message (mymsg), stores data in
the message body tag (mytag), and sends the
message on the output pipe (outpipe).
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