Wiki › Project
Build your own BitTorrent
Article
ReadAll pages
From Chaipat's knowledge graph
Build your own BitTorrent is his C++ solution to CodeCrafters' BitTorrent challenge: a client that downloads a file the way BitTorrent does. The challenge's stages:
- decode the
.torrentfile's bencoded format; - ask the tracker over HTTP which peers have the file;
- connect to a peer and exchange messages in BitTorrent's peer protocol, requesting pieces in a pipeline;
- check each piece against its hash.
It lives in his ape-playground GitHub organisation.