E
E
Exvel2011-11-08 20:43:24
bittorrent
Exvel, 2011-11-08 20:43:24

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

7 answer(s)
S
Sergey Savostin, 2011-11-08
@savostin

doc.qt.nokia.com/latest/network-torrent.html

M
mmjurov, 2011-11-09
@mmjurov

There was once an article in a hacker

P
Paul, 2011-11-09
@Paul

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.

K
korvindest, 2011-11-08
@korvindest

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 ?

A
Andrey Kravchuk, 2011-11-09
@prefrontalCortex

Official documentation rocks:
jonas.nitro.dk/bittorrent/bittorrent-rfc.html

M
Michael., 2011-11-10
@kulinich

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.

H
hachik, 2012-06-29
@hachik

Here, for example, is the source text of the torrent client.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question