Name
talk — Talks to another peer
Synopsis
talk -registeruserName
[ -secure ] [ -propagate ] talk -loginuserName
talk -logoutuserName
talk -search talk [-uuser
]userName
Description
The talk
command
implements a simple instant-messaging command that enables two users
on two remote peers to exchange messages. Messages are displayed on
the stdout
of the shell.
In order to use talk
, the user needs to register,
log on, and send messages. This is done via the following steps:
Register via the
talk -register
username
command. This command creates a talk advertisement for that user. This has to be done only once—the first time the user registers withtalk
. Like all advertisements, it is cached so that it persists across reboots.-
secure
Can be added in order to establish a secure talk session
-
propagate
Can be added in order to establish a chatroom-style talk session
-
Log in via
talk -login
username
command. This command logs in the user to the talk service and starts a listener daemon. This has to be done every time the peer is restarted.The user can now talk to another user via the
talk -u
myusername
destusername
command. This command will prompt the user to enter the message she wants to send:JXTA>
talk -u moi mike
talk is connected to user mike Type your message. To exit, type '.' at begining of lineTo stop receiving talk messages, the user can stop the
talk
listener daemon by entering thetalk -logout
username
command.
Options
-
-register
Registers a new username
-
-login ...
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.