Download Latest Version P2P_Servent_GUI.jar (39.9 kB)
Email in envelope

Get an email when there's a new version of P2PTool

Home
Name Modified Size InfoDownloads / Week
README.txt 2011-09-13 2.7 kB
P2P_Servent_GUI.jar 2011-09-13 39.9 kB
P2P_Server.jar 2011-09-13 15.7 kB
Totals: 3 Items   58.3 kB 1
-----------------------
P2P Tool v0.1
-----------------------
(C) 2011 Michael Gibson
-----------------------

1. INTRODUCTION
-----------------------
P2P Tool is designed to assist in the creation and teaching of peer-to-peer networks.
It has been created to ease the development of P2P networks by using an already
established networking infrastructure (using Java new I/O) and using Messages to
transmit data between different nodes on the network. Because this is open-source,
you are free to modify the underlying infrastructure to suit your own needs.

2. INSTALLATION
-----------------------

2.1 REQUIREMENTS
-----------------------
o Java 1.6 or later

2.2 Server
-----------------------
1. In a command prompt/terminal window, start the server with java -jar P2P_Server.jar
2. Keep this running as it will display incoming messages from servents
3. To finish, press Ctrl+C or close the window

2.3 Servent
-----------------------
1. Double-click on P2P_Servent_GUI.jar to launch the Servent GUI interface. If this does not work, try opening it in a separate command prompt/terminal window with java -jar P2P_Servent_GUI.jar
2. Under Edit->Settings... enter the server’s address and port number, the name of this servent and its listening port number, maximum number of neighbours (connections) and whether to send all messages via the server. Then press OK
3. Make sure the server is still running and then click Servent->Connect... The console text area should spit out some messages (if they appear to be broken, it’s something to do with the console’s output buffer) and the Neighbours list will fill up depending if neighbours were found and connected to
4. Add files to the servent by typing in a file name in the top-right text field and then clicking on Add file. You can also remove files by clicking on a file name in the files list and then pressing Remove file
5. To find a file, type in the requested file name in the middle text field and then click on Find... If the file has been found, it will appear on the list of files with a comment in the console area showing who it came from
6. Whilst idling, the console window will display any messages it receives and how it has dealt with them. At any time, it can be cleared by pressing Clear
   
3. RESOURCES
-----------------------
Using Java NIO (new I/O) may be daunting to use at first, but in the long run it should
be easier to use compared to standard sockets and threads. Google is your friend here, but
here are some good starting places to learn NIO:
http://rox-xmlrpc.sourceforge.net/niotut/
http://tutorials.jenkov.com/java-nio/index.html
http://www.exampledepot.com/egs/java.nio/pkg.html
  
Source: README.txt, updated 2011-09-13