btc is an implementation of a subset of the BitTorrent protocol to allow us to download torrents. It is mainly written for learning purposes.
python main.py <path to torrent file>
bencode.py
contains code for parsing torrent filestracker.py
implements the tracker protocolpeers.py
implements the peer protocoloracle.py
coordinates among the different threads we create (for downloading different pieces)
- The downloads proceed real slow. For example, downloading a one GB file took us five and a half hours. Fix This.
- Currently we support UDP trackers only. Add support for HTTP trackers.