gpt4 book ai didi

bittorrent - torrent文件的内容

转载 作者:行者123 更新时间:2023-12-04 12:51:57 37 4
gpt4 key购买 nike

我有一个关于 torrent 文件的问题。
我知道它包含我需要连接的服务器(用户)列表,用于下载整个文件的一部分。

我的问题是,这是否就是洪流所包含的全部内容?还有更重要的细节吗?

谢谢!

最佳答案

Torrent 文件是一种特殊格式的二进制文件。它始终包含有关所有片段的文件列表和完整性元数据,并可选择包含跟踪器列表。

Torrent 文件是一个编码字典,具有以下键:

announce - the URL of the tracker
info - this maps to a dictionary whose keys are dependent on whether one or more files are being shared:
name - suggested file/directory name where the file(s) is/are to be saved
piece length - number of bytes per piece. This is commonly 28KiB = 256 KiB = 262,144 B.
pieces - a hash list. That is, a concatenation of each piece's SHA-1 hash. As SHA-1 returns a 160-bit hash, pieces will be a string whose length is a multiple of 160-bits.
length - size of the file in bytes (only when one file is being shared)
files - a list of dictionaries each corresponding to a file (only when multiple files are being shared). Each dictionary has the following keys:
path - a list of strings corresponding to subdirectory names, the last of which is the actual file name
length - size of the file in bytes.

关于bittorrent - torrent文件的内容,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20935340/

37 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com