|
|
__init__(self,
choker,
httpdl,
add_task,
upfunc,
downfunc,
ratemeasure,
leftfunc,
file_length,
finflag,
statistics,
statusfunc=None,
interval=None)
Initialize the instance. |
source code
|
|
list of Connecter.Connection
|
_rotate(self)
Rotate the list of connections so it starts roughly where it did
before. |
source code
|
|
list of dictionary
|
|
dictionary
|
gather(self,
displayfunc=None)
Gather the information about the download. |
source code
|
|
|
|
display(self,
displayfunc)
Gather the information about the download and display it. |
source code
|
|
|
|
|
|
|
_autodisplay(self)
Call the displayer and reschedule. |
source code
|
|
method
|
add_task
the method to call to schedule future tasks
|
|
Choker.Choker
|
choker
the Choker instance for the download
|
method
|
displayfunc
the method to call to display the gathered data
|
threading.Event
|
doneprocessing
flag that is set when the previous display is complete
|
method
|
downfunc
the method to call to get the download rate
|
long
|
file_length
the total length of the download
|
threading.Event
|
finflag
flag to indicate when the download is complete
|
|
HTTPDownloder.HTTPDownloader
|
httpdl
the HTTP downloader instance used by the download
|
int
|
interval
the number of seconds between displays of the gathered data
|
list of string
|
lastids
the peer IDs that were found the last time
|
method
|
leftfunc
the method to call to determine the amount of data left to
download
|
|
DebTorrent.RateMeasure.RateMeasure
|
ratemeasure
the download rate measurement for the download
|
|
Statistics.Statistics
|
statistics
the statistics gatherer for the download
|
method
|
upfunc
the method to call to get the upload rate
|