Name

get — Gets data from a pipe message

Synopsis

get msg 
                  tag
               

Description

get retrieves the tag body of a message. JXTA messages are composed of a set of tag bodies, each identified with a unique tag name. A message and tag name are supplied to this command to specify which tag body to extract.

Example

JXTA>pipeadv = mkadv -p
JXTA>inpipe = mkpipe -i pipeadv
JXTA>msg = recv inpipe
JXTA>data = get msg mytag

This example creates a pipe advertisement (pipeadv), creates an input pipe (inpipe), and receives a message (msg) over that pipe. The tag body of the message associated with mytag is retrieved from the message via the get command.

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.