|
|
__init__(self,
files,
piece_lengths,
bufferdir,
storage,
storagewrapper,
sched,
picker,
failfunc)
Initialize the instance. |
source code
|
|
boolean
|
|
|
|
|
|
|
tie_in(self,
cancelfunc,
requestmorefunc,
rerequestfunc)
Set some instance variables that weren't available at
initialization. |
source code
|
|
boolean
|
|
list of int
|
|
list of int
|
|
list of int
|
|
|
|
|
|
|
|
|
|
|
list of int
|
|
|
|
|
int
|
|
|
|
finish(self)
Delete disabled files when the download is being shutdown. |
source code
|
|
dictionary
|
|
method
|
cancelfunc
method to call to cancel piece downloads
|
|
unknown
|
downloader
not used
|
method
|
failfunc
the method to call to indicate an error has occurred
|
list of tuple
|
filepieces
an ordered list, one for each file, containing a tuple of the
pieces that belong to that file
|
list of (list of string,
long)
|
files
the paths and sizes of the files
|
list of int
|
init_priority
the initial unpickled priority of each file in the download
|
list of int
|
new_partials
the new list of partially completed pieces to process
|
list of int
|
new_priority
the new priority of each file in the download
|
int
|
numfiles
the number of files in the download
|
int
|
numpieces
the number of pieces in the download
|
|
PiecePicker.PiecePicker
|
picker
the PiecePicker instance to use
|
list of int
|
piece_priority
the current priority for each piece in the download
|
list of int
|
priority
the current priority of each file in the download:
|
method
|
requestmorefunc
method to call to request more peers for a newly enabled piece
download
|
method
|
rerequestfunc
method to call to request more peers
|
method
|
sched
the mehtod to call to schedule a future invocation of a
function
|
|
Storage.Storage
|
storage
the Storage instance to use
|
|
StorageWrapper.StorageWrapper
|
storagewrapper
the StorageWrapper instance to use
|