3 ms·
I write a bittorrent node. It goes over many topics I'm interested in: potrntially low-level networking, storage, bits and bytes fiddling, concurrency. The prot
by rakoo 4y ago
I write a bittorrent node. It goes over many topics I'm interested in: potrntially low-level networking, storage, bits and bytes fiddling, concurrency. The protocol is shockingly simple, and the end result is both easily testable and actually useful.
- rengler33 4y agoThis seems interesting. Any resources you can recommend for understanding the protocol? And any examples of simple clients in various languages?
- rakoo 4y agoI typically only use the spec (https://www.bittorrent.org/beps/bep_0003.html https://www.bittorrent.org/beps/bep_0003.html) because it's simple enough, but in case of doubt I guess a third party resource is good. I found https://blog.jse.li/posts/torrent/ https://blog.jse.li/posts/torrent/ to be quite informative about it. I used to work on a fork of https://github.com/jackpal/Taipei-Torrent https://github.com/jackpal/Taipei-Torrent with custom features, I found its code to be easy enough to understand