Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 1.04 KB

README.md

File metadata and controls

17 lines (14 loc) · 1.04 KB

CECS 327

Course Title: Introduction to Networks and Distributed Computing

Assignment: Peer-to-peer File System

How to run

  1. cd P2P-File-System/Project/out/production/Project
  2. javac -d ./ ../../../src/*.java
  3. java ChordUser {port}

Additional Information

  • In order to add files to the system, they must exist within the working directory of the folder created for {port} in P2P-File-System/Project/out/production/Project/
  • The working directory for any {port} will be created when starting the program correctly with {port}, and it will have a 19-digit integer name (Example for port = 4001)
  • Start another console window or tab and follow the same steps to run, then perform the following commands in the program (where {ip}:{port} is running in another console process):
  1. join {ip} {port}
  2. write {filename.extension}
  3. read {filename.extension} from a different console program (The file will downloaded to that console programs working directory)