Name
put — Puts data into a pipe message
Synopsis
putmsg
tag
document
Description
put
stores a document in the body of a
message. JXTA messages are composed of a set of tag bodies, each
identified with a unique tag name. A message tag name is supplied to
specify which tag name is used to store the document. On the
receiving end the document can be retrieved via the
get
command.
Example
JXTA>importfile -f /home/tra/myfile mydata
JXTA>msg = mkmsg
JXTA>put msg mytag mydata
This example creates a document (mydata
) by
importing data from the /home/tra/myfile
file.
Then it creates a pipe message (msg
) and stores
the document in the message with the associated tag name
(mytag
).
Get JXTA in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.