A
A
Abiba12342021-10-29 00:32:08
bittorrent
Abiba1234, 2021-10-29 00:32:08

How does a torrent download files from users?

How does the torrent understand that I have the files it needs, how does it find them (what happens if I transfer the files from the folder where the torrent downloaded to another folder or to another disk)? How will a torrent divide one monolithic file into elements in order to download only a part from me?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-10-29
@vabka

Hello everyone, how does a torrent understand that I have the files it needs, how does it find them? How will a torrent divide one monolithic file into elements in order to download only a piece from me?

bittorrent implies that:
1. For each file, its hash sum is calculated
2. Each file is divided into parts, and the hash sum is also calculated for them
3. Each part has a number, size, and an offset relative to the beginning of the file.
4. The size of the parts (chunks) is determined in advance by the author of the distribution.
Each participant in the exchange constantly tells others what parts he has and what other parts are needed, and then the necessary parts are exchanged.
what happens if I transfer files from the folder where I downloaded the torrent to another folder or to another drive

Then your torrent client will see that the files are gone, and will assume that you cannot distribute anything, and you need all the parts - you indicated in advance which folder to download the files to.
https://ru.wikipedia.org/wiki/BitTorrent_(%D0%BF%D...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question