A Pastry implementation in Java using FreePastry. Store files on a Peer to Peer network.
-
You must include the FreePastry lib. Download
-
Generate .jar
-
Open the CLI and go to /dist location
cd /dist
- Run the following command
java -jar "PastrySimulator.jar" 9000 [your local IP] 9000
- (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
-
You must include 2 more libraries:
-
Now, you can store files on a P2P network