Skip to content

Latest commit

 

History

History
36 lines (22 loc) · 1018 Bytes

README.md

File metadata and controls

36 lines (22 loc) · 1018 Bytes

Pastry Simulator

A Pastry implementation in Java using FreePastry. Store files on a Peer to Peer network.

How to run

  1. You must include the FreePastry lib. Download

  2. Generate .jar

  3. Open the CLI and go to /dist location

  cd /dist
  1. Run the following command
  java -jar "PastrySimulator.jar" 9000 [your local IP] 9000
  1. (Optional) Open another CLI and run the following command, you can repeat this step as many times as you want (for i=1; i<n; i++)
  java -jar "PastrySimulator.jar" 9000+i [your local IP] 9000
  1. You must include 2 more libraries:

  2. Now, you can store files on a P2P network

Store file on P2P