Implementation of a file sharing protocol which has functionalities like download and upload files, and indexed searching.
The following steps are required in order to test the commands:
-
Extract the folder 20171017_20171202_20171204_Project2 from the Zip Folder
-
Go to system_1, and open a terminal window from this folder
-
Go to system_2, and open another terminal window from this folder
-
From the system_1 terminal window, run the command: $ python2 s1_trial.py From the system_2 terminal window, run the command: $ python2 s2_trial.py This connects the two servers.
-
Now you get a prompt "$>" to test the commands on both the terminals
-
To test IndexGet shortlist:
$> IndexGet shortlist 1580000000 1590000000
For the bonus part:
$> IndexGet shortlist 1580000000 1590000000 *.pdf
$> IndexGet shortlist 1580000000 1590000000 *.txt
- To test IndexGet longlist:
$> IndexGet longlist
For the bonus part:
$> IndexGet longlist Programmer
$> IndexGet longlist xa
- To test FileHash verify
$> FileHash verify a.txt
- To test FileHash checkall
$> FileHash checkall
- To test FileDownload TCP
$> FileDownload TCP 2.txt
- To test FileDownload UDP
$> FileDownload UDP 3.txt
- To test Cache verify
$> Cache verify a.txt
- To test Cache show
$> Cache show