Name

leave — Leaves the current peergroup

Synopsis

leave [-k]

Description

The leave command is used to leave the current peergroup (assuming that the current peergroup is not the NetPeerGroup). After leaving the group, the stdgroup variable is reset to the value of the default rootgroup variable (the NetPeerGroup).

If the -k option is used, then this instance of the group is stopped and deleted. Before a user can use the stopped group again, the user will have to rejoin the group via the join command.

Example

JXTA>mygroupadv = mkadv -g mygroup
JXTA>mkpgrp -d mygroupadv mygroup
JXTA>join mygroup
JXTA>leave

This creates a new peergroup with the name mygroup. The join command sets the current peergroup to mygroup; the leave command resets the current peergroup to the NetPeerGroup.

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.