- Navigate to the
srcfolder and run the following command:javac -cp . ./Main/Main.java ./discovery/.java ./discovery/messages/.java ./p2p/.java ./testing/.java - Start the central server:
java -cp . Main.Main central <!CentralServerIP!> <!CentralServerPort!>
- Start a peer:
java -cp . Main.Main peer <!PeerIP!> <!PeerPort!> <!CentralServerIP!> <!CentralServerPort!>
- Run the peer command as shown above.
- Use the following command to upload a file:
upload <!FILEPATHINOS!>
- Run the peer command as shown above.
- Use the following command to download a file:
download
- In the
testdirectory, add a file containing the paths of all the files to be tested. - Run the following command to start testing:
java -cp . Main.Main testing <!test Name!>
Currently, the test will use a three-node setup to perform the testing.