Changes between Initial Version and Version 1 of archive/libtorrent.rakshasa.no/LibTorrentResume


Ignore:
Timestamp:
08/08/15 16:25:52 (9 years ago)
Author:
Gabor Hudiczius
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • archive/libtorrent.rakshasa.no/LibTorrentResume

    v1 v1  
     1[[libtorrentMirror]]
     2
     3= Resume data =
     4
     5Using the functions ''torrent::Download::hash_check(true)'' and
     6''torrent::Download::hash_resume_save()'' the client can tell the
     7library to load and save various data that is useful when resuming a
     8download. To ignore resume data call
     9''torrent::Download::hash_check(true)''.
     10
     11The resume data is stored in the bencoded torrent as a dictionary
     12under the key "libtorrent resume". All the following items are within
     13that dictionary.
     14
     15== Completed chunks ==
     16
     17When resuming the library will skip hash checking for chunk ranges
     18that have valid resume data. The file modification time-stamp is
     19stored with the resume data, and ranges containing files whose stored
     20time-stamp does not exactly match what is on the disk it will be
     21invalidated. If the file size does not match it will also invalidate
     22the range.
     23
     24== Peer addresses ==
     25
     26Peer addresses that are contained in torrent::AvailableList will be
     27saved, which will includes connected peers as their addresses are
     28copied over when a torrent is stopped.
     29
     30== Files ==
     31
     32Various file related information is stored in a list under the key
     33"files". This list exactly matches the file list in the original
     34torrent.
     35
     36  * ''mtime'': File modification time-stamp as an integer.
     37  * ''priority'': The file priority as an integer between [0,3>.