2014-01-05 17 views
2

我有一個關於種子文件的問題。 我知道它包含我需要連接的服務器(用戶)列表,用於下載整個文件的一部分。種子文件的內容

我的問題是,如果這是洪流包含的所有內容?有更重要的細節?

的感謝!

+2

http://en.wikipedia.org/wiki/Torrent_file#File_structure – SLaks

回答

-1

torrent文件是一種特殊格式的二進制文件。它總是包含關於所有片斷的文件和完整性元數據的列表,並且可選地包含跟蹤器列表。

torrent文件是一個B編碼字典與以下項:

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. 
+0

torrent文件是一個B編碼字典用'在least'以下按鍵:「通知」和「信息」。其他鍵包括:'公佈名單,評論,創建,創建日期,編碼,RSS,網址列表,網站'。 – Deanie

+0

我也忘了'nodes,publisher'和'publisher-url'。 – Deanie