|
|
__init__(self,
config,
schedule,
picker,
done=<function <lambda> at 0x2b5519393d70>)
Initialize the Choker instance. |
source code
|
|
|
|
|
|
|
_round_robin(self)
Periodically determine the ordering for connections and call the
choker. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set_super_seed(self)
Change to super seed state. |
source code
|
|
|
|
|
dictonary
|
config
the configuration variables
|
list of Connecter.Connection
|
connections
the connections from peers to the client
|
Event
|
done
flag to indicate when the download is complete
|
int
|
last_preferred
the number of preferred connections found in the last
examination
|
long
|
last_round_robin
the last time the connections were examined
|
Event
|
paused
flag to indicate when the download is paused
|
|
PiecePicker
|
picker
the PiecePicker to get connection information from
|
int
|
round_robin_period
the number of seconds between the client's switching of upload
targets
|
method
|
schedule
the method to call to schedule future events
|
boolean
|
super_seed
whether super-seeding is enabled
|