|
|
__init__(self,
storage,
picker,
max_rate_period,
numpieces,
chunksize,
measurefunc,
snub_time,
kickbans_ok,
kickfunc,
banfunc)
Initialize the instance. |
source code
|
|
|
|
|
int
|
|
|
|
|
|
|
|
|
SingleDownload
|
|
|
|
|
int
|
|
|
|
|
|
|
_reset_endgame(self)
Stop the endgame mode. |
source code
|
|
|
|
|
|
|
expire_disconnected_seeds(self)
Expire old disconnected seeds. |
source code
|
|
int
|
|
boolean
|
|
|
|
|
|
|
|
|
|
set_super_seed(self)
Enable super-seed mode. |
source code
|
|
boolean
|
|
boolean
|
|
|
|
|
|
|
|
|
|
start_endgame(self)
Switch to endgame mode. |
source code
|
|
|
|
|
list of (int, int,
int)
|
all_requests
all outstanding requests to all peers
|
method
|
banfunc
method to call to ban a peer
|
dictionary
|
banned
keys are the IP addresses of peers that have been banned, values
are their peer IDs
|
int
|
bytes_requested
the number of bytes in oustanding requests
|
int
|
chunksize
the number of bytes to query for per request
|
long
|
discarded
the amount of downloaded data that has been discarded
|
dictionary
|
disconnectedseeds
seeds that have recently been seen, keys are the seed's peer ID,
values are the last time the seed was seen
|
float
|
download_rate
the maximum rate to download at
|
list of SingleDownload
|
downloads
the active downloads from peers
|
list of int
|
endgame_queued_pieces
the list of pieces that are queued in end-game mode
|
boolean
|
endgamemode
whether the download is in end-game mode
|
dictionary
|
gotbaddata
keys are the IP addresses that have sent bad data
|
boolean
|
kickbans_halted
not used
|
boolean
|
kickbans_ok
whether to automatically kick/ban peers that send bad data
|
dictionary
|
kicked
keys are the IP address, values are the peer ID for peers that
have been kicked
|
method
|
kickfunc
method to call to kick a peer
|
float
|
last_time
the last time the queue limit was calculated
|
float
|
max_rate_period
maximum amount of time to guess the current rate estimate
represents
|
method
|
measurefunc
the method to call to add downloaded data to the measurement of
the download rate
|
int
|
numpieces
total number of pieces in the download
|
boolean
|
paused
whether the download is paused
|
dictionary
|
perip
keys are the IP addresses of peers, values are their PerIPStats
|
|
PiecePicker.PiecePicker
|
picker
the PiecePicker instance
|
dictionary
|
queued_out
keys are SingleDownload that are queued waiting for
download
|
boolean
|
requeueing
whether requeueing is currently underway
|
float
|
snub_time
seconds to wait for data to come in over a connection before
assuming it's semi-permanently choked
|
|
StorageWrapper.StorageWrapper
|
storage
the StorageWrapper instance
|
boolean
|
super_seeding
whether we are in super-seed mode
|
|
DebTorrent.CurrentRateMeasure.Measure
|
totalmeasure
for measuring the total download rate from all peers
|