项目作者: dhawal777

项目描述 :
Bittorrent is a P2P file sharing protocol which accounts for over 25% of traffic on the internet. In P2P file sharing,a software client on an end-user PC request a file,and portion of the requested file residing on peer machines are sent to the client and then reassembled into a full copy of the requested file. We created our own .mtorrent for this purpose and which contain the SHA1 of the corresponding file and all other necessary details related to tracker and its own Id. We also handled the fault tolerance on network by maintaining two trackers instead of one.
高级语言: C++
项目地址: git://github.com/dhawal777/BitTorrent.git
创建时间: 2018-11-30T19:25:46Z
项目社区:https://github.com/dhawal777/BitTorrent

开源协议:

下载


  1. MINI TORRENT

PART1
………………………..CREATING MTORRENT……………………………….

1..Creating mtorrent …It will automatically be created while sharing a file in Part3.

FORMAT of mtorrent:-
TRACKER URL1
TRACKER URL2
FILENAME
FILESIZE
SHA

2.Access any mtorrent as .mtorrent

PART2
…………………………..TRACKER………………………………………..
1.Start Tracker as..
./server_2018201001 10.42.0.394:4444 10.42.0.666:5555 seeders.txt mylog.log

Note:- It is always running…….

PART3
…………………………..Client…………………………………………
This part utilizes both PART1 and PART2.There are several commands that are implemented in this and the way to access those commands are as follows:-

1.SHARE
………….
If client want to make itself seader of some file than it can be done by uploading its file in seader list by using this command.

COMMMAND: share .mtorrent

2.GET/DOWNLOAD
…………..
In order to download a file from remote server client can use this command.
It must also noted that after download client automatically become seader of that file that it has currently downloaded.

NOTE:-> It is assumed that mtorrent is already with the client.

COMMAND: get .mtorrent destination_path

At the end of downloads it also update the seeders list.

3.REMOVE
…………….
If client want to remove any file it was previously sharing can use this command.

COMMAND: remove .mtorrent

4.CLOSE
…………….
If client want to close its connection it can use this command.
It must also be noted that when client rejoin the network all ots mtorrent are again loaded in seeder list.

COMMAND: close

5.SHOW_DOWNLOADS
………………
In order to see the list all files that are downloaded till now client can use this command.

COMMAND: show_downloads

ASSUMPTION::::
1.It is done only with single tracker.
2.It is communicating with multiple seeders but taking file only from one.
………………………………………….xxxxxxxxxxxxxxxxxxxxxxxxxxxxx……………………………………………………