Name
mkadv — Makes an advertisement
Synopsis
mkadv -g|p [[-tpipetype
] [-ddoc
] [name
]]
Description
mkadv
creates a peergroup or pipe
advertisement from a document stored in a shell environment variable.
A symbolic name can be associated with the advertisement; this name
can be used to search for the advertisement. A name must be supplied
when creating a new group advertisement; this is the name of the
peergroup.
Options
-
-p
Creates a pipe advertisement.
-
-t
This option is valid only for pipe advertisements and will be used to define the type of pipes. It is presently unimplemented.
-
-g
Creates a new peergroup advertisement. If no document is given, a clone of the current peergroup is created. The new peergroup will have the same services and endpoints as the current group. If a document argument is supplied, the document must be a peergroup advertisement and is used to create the new peergroup.
-
-d
This is the environment variable that contains a structured document that holds an advertisement.
Example
JXTA>importfile -f saveadv groupadv
JXTA>mygroupadv = mkadv -g -d groupadv
JXTA>mkpgrp -d mygroupadv mygroup
This creates a new peergroup from an advertisement created from a
StructuredDocument
that was imported from the
saveadv
file and stored in the
groupadv
environment variable. The new group is
given the name mygroup
. Before you can do anything
with the group, you need to join it with the join
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.