Project JXTA: Instantp2p Users Guide

Introduction

Instantp2p is a JXTA peer-to-peer application that contains functionality to chat one-on-one, chat with a group, and share files. The Instantp2p application uses the JXTA core modules to discover peers and groups, create peer groups, and search for files. This application is a demo that can be used to build other JXTA peer-to-peer applications.

Logging In To instantP2P

1. When starting instantP2P, the login window will appear. Enter your your nickname for the current session. Note: Currently, the password field is not active.
2. Click on OK to proceed. Click on Cancel to exit.

After logging in, the InstantP2P interface will appear (see below):

Menu Options

File - Exit
Edit - Preferences Navigation - Search, Share, Chat, and Group Chat
Group - Add Group, Join Group, Leave Group, and Refresh
Help - About InstantP2P

Peer Groups and Peers

The Peer Groups area displays the peer groups present on JXTANet. The Peers area displays the peers present in that particular group.

Above the two groups you can see the drop down menu "Select...". In the drop down menu you will find the three options:
1. All Groups - To search all groups
2. My Groups - Groups which you have joined
3. A Group Name - You can specify a group name. In this option you have to fill in the group name in the Search field then click Search.

After you search you will get a list of the PeerGroups in the PeerGroups area. Clicking on a peer group will return a list of the peers in that peer group in the peers area.

Search

The Search tab allows you to search in the shared contents in the selected group. Clicking on the Search tab brings up the search field and the Search button. You can search for all the contents shared in the group by clicking the "Search" button. You can also search for selected contents by typing the initial few letters of the content names. For example, JXTA in the search field would search all the documents starting with "JXTA" as a prefix. Searched contents can be saved locally or viewed by selecting a content. Refresh lets you refresh the search results and Clear Request clears the search field and results.

Share

The Share tab allows you to share content documents/files with other peers in the selected group. Clicking on the "Share" tab takes you to the share screen, where you will get two buttons Add Content and Remove Content. Clicking on Add Content pops up a "select file to share" box in which you can browse to the file you want to share. Select a file and click Remove Content to remove it from the shared list.

Clicking on a file in the Shared Content space brings up a box with the properties of the file.

Chat

For chatting you have two options Chat and Group Chat. Chat allows you to talk with another peer. GroupChat allows you to chat in a Peer Group.
You have to click on one of the two tabs and then Click on Chat or Join Chat respectively. Type your message in the Send Message field and press enter to send it.
Click End Chat to leave chat.