News for hackers. Stuff that matters.
Re:How to Write a BitTorrent Client, Part 1 by cheatdeath on Tuesday July 05, 2016 @06:25AM (#12035475)
I recently went through the same thing – building my own simple BitTorrent client, mostly just due to curiosity about how the protocol works. There were some tricky parts, most of which are outlined in this but I found the underlying concept so simple. I guess simplicity is a requirement for scale and resilience.

I wrote up my adventure too: http://seanjoflynn.com/research/bittorrent.html

Re:How to Write a BitTorrent Client, Part 1 by zielmicha on Tuesday July 05, 2016 @08:41AM (#12035952)
For "Writing BitTorrent Client" workshops I've made, I have created "introductory" tracker and peers (they, for example, display friendly errors if you make invalid protocol requests): https://torrent.zielmicha.com/

The source is on Github: https://github.com/zielmicha/torrent-workshops

(unfortunately you need to register before using it, but you can even use fake mail)

Re:How to Write a BitTorrent Client, Part 1 by allenkim6 on Tuesday July 05, 2016 @09:23AM (#12036214)
If anyone is interested in a similar writeup for a bittorrrent client for node.js, check out my tutorial here: http://allenkim67.github.io/bittorrent/2016/05/04/how-to-mak...
Re:How to Write a BitTorrent Client, Part 1 by siculars on Tuesday July 05, 2016 @03:42PM (#12038979)
Love! Thanks!
Re:How to Write a BitTorrent Client, Part 1 by SlashmanX on Tuesday July 05, 2016 @06:54AM (#12035551)
Feross has some great implementations of the different pieces of BitTorrent (including parsing torrent files, magnets etc) in JavaScript on his GitHub[0]. Would recommend people take a look if they find this blog post interesting.

[0] - https://github.com/feross?tab=repositories

Re:How to Write a BitTorrent Client, Part 1 by andreicon on Tuesday July 05, 2016 @06:31AM (#12035493)
this is actually pretty cool. i think cryptocurrencies could benefit from the implementation of some design features from the bittorrent protocol.
Re:How to Write a BitTorrent Client, Part 1 by joeblau on Tuesday July 05, 2016 @08:06AM (#12035808)
This is something that's been on my list of things to do for a while and I've never gotten around to it. Thanks for this post.
[dead]
Re:How to Write a BitTorrent Client, Part 1 by emodendroket on Tuesday July 05, 2016 @08:50AM (#12036011)
What part of this do you think is illegal?