Answer the question
In order to leave comments, you need to log in
An example of creating a simple torrent client?
Hello.
I set out to write the simplest torrent client for downloading files (even without distribution).
I searched the net for examples and did not find anything simple. Those. all sorts of open-source libraries in bulk, but I don’t want to disassemble all their functionality, I need a minimum without bells and whistles in order to understand the principles themselves and somehow apply them in my client.
If anyone has come across such examples or written their own simple torrent client in C, Sharp, Java (or another, preferably not a dead language), then I beg you to share. On the Internet I found only an example of parsing the torrent file itself, and on the very operation of the torrent there are only examples of interaction with ready-made libraries.
In general, help people kind. :)
Answer the question
In order to leave comments, you need to log in
sourceforge.net/projects/libtorrent/
There are also examples, in particular simple_client.cpp for 1 screen of code that takes a .torrent file as a command line parameter and downloads it.
Netty framework (low-level operation)
jBitTorrentAPI (high-level torrent framework)
I have a counter question for you: Do you really want to write something of your own, and not use something ready- made like torrent2exe ?
Official documentation rocks:
jonas.nitro.dk/bittorrent/bittorrent-rfc.html
I rummaged through my file and found what I was talking about a little higher:
www.xakep.ru/magazine/xa/118/116/1.asp
PS I don’t know if this article will help, MomoTorrent is also used there.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question