by CountHackulus · 12y ago · 0 comments
Say I wanted to write my own bittorrent client for fun and to learn a new language, is there a good guide on bittorrent I can read?
Don't cache anything. Write data directly to disk and use seeks. Request pieces at random and don't think about getting the rarest first. Skimp on the choking strategy and don't do anything clever, but pick a simple algorithm. Skip all the extensions until the other parts work.
Get the wire-protocol and bencoder up and running first. Then handle tracking. Then handle connections to peers. Then handle storage.