-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcommands_to_be_executed
36 lines (29 loc) · 1.17 KB
/
commands_to_be_executed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
//peer1
g++ -o peer1 peer1.cpp -lpthread -lcrypto
./peer1 127.0.0.1 8765 tracker_info.txt
create_user abhishek asd
login abhishek asd
download_file aaa KabirSingh.mkv /home/abhishek/dev/OperatingSystem/Assignment_2/share_file1
list_groups
join_group abc
download_file abc KabirSingh.mkv /home/abhishek/dev/OperatingSystem/Assignment_2/share_file1
//Tracker
g++ -o tracker tracker.cpp -lpthread -lcrypto
./tracker tracker_info.txt
//peer2
g++ -o peer2 peer1.cpp -lpthread -lcrypto
./peer2 127.0.0.1 8766 tracker_info.txt
create_user utsav asas
login utsav asas
create_group abc
upload_file /home/abhishek/dev/OperatingSystem/Assignment_2/KabirSingh.mkv aaa
(run this for group failure checking)
upload_file /home/abhishek/dev/OperatingSystem/Assignment_2/KabirSingh.mkv abc
list_requests abc
accept_request abc abhishek
list_files abc
Important Notes-
Random first for first peice, Tit-for-tit, rare-first. Distributed Hash table for decentralized tracker.
LoopHoles-Didn't implemented validations for differnet commands for user login&password.
System Loopholes - Cannt open more than 1024 filedescriptor.
It was centralized tracker, Decentralized tracker wasnt implemented, DHT is needed.