-
Hi, I am completely new to both bittorrent and the libtorrent library. I was struggling with the concept of tracker and seed yesterday. So, my questions will be quite naive to all of you. I have successfully installed the library and was able to compile and run the example posted on the official website of libtorrent (https://www.libtorrent.org/examples.html). However, I am not able to test if I can download anything from the web due to the security of network I am using. I will probably have to set up my own tracker. Here are my questions:
I will also really appreciate it if anyone can recommend any book or reading material to explain all the concepts of bittorrent. Please bear with all these simple questions I posted in such a professional community. Thanks in advance for the help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 8 replies
-
(1) you can take a look at this example: https://github.com/arvidn/libtorrent/blob/RC_2_0/examples/torrent2magnet.cpp (2) as long as you can join the DHT, you don't need a tracker, you can look up peers from the DHT. The tracker is associated with a torrent, not with the client downloading the torrent. (3) Having a client seed the content or a web server are orthogonal. You can do one or the other or both. Typically, a client that has all content and stays in the swarm is referred to as a seed, even though it's not the initial copy (as the term seed would suggest). (4) libtorrent does not come with a tracker implementation. If you need to run one, you could check out https://github.com/arvidn/utrack or open tracker. libtorrent does support creating private torrents. I gave a lecture on bittorrent in 2006, and you can find its slides here: http://libtorrent.org/bittorrent.pdf |
Beta Was this translation helpful? Give feedback.
(1) you can take a look at this example: https://github.com/arvidn/libtorrent/blob/RC_2_0/examples/torrent2magnet.cpp
(2) as long as you can join the DHT, you don't need a tracker, you can look up peers from the DHT. The tracker is associated with a torrent, not with the client downloading the torrent.
(3) Having a client seed the content or a web server are orthogonal. You can do one or the other or both. Typically, a client that has all content and stays in the swarm is referred to as a seed, even though it's not the initial copy (as the term seed would suggest).
(4) libtorrent does not come with a tracker implementation. If you need to run one, you could check out https://github.com/ar…