|
|
__init__(self,
connection,
ratelimiter,
totalup,
choker,
storage,
picker,
config)
Initialize the instance and send the initial bitfield. |
source code
|
|
|
|
got_not_interested(self)
Process a received not interested message. |
source code
|
|
|
|
got_interested(self)
Process a received interested message. |
source code
|
|
(int, int, string)
|
|
|
|
|
|
|
|
|
|
|
|
|
choke_sent(self)
Remove all requests after a choke is sent. |
source code
|
|
|
|
|
|
|
disconnected(self)
Clean up for disconnection from the peer. |
source code
|
|
boolean
|
|
boolean
|
|
boolean
|
|
float
|
|
list of (int, int,
int)
|
buffer
the pending requests for the peer, the piece index, offset within
the piece, and chunk length requested
|
boolean
|
choked
whether we are choking the connection
|
|
Choker.Choker
|
choker
the Choker instance to use
|
boolean
|
cleared
whether requests are allowed to be appended to the buffer
|
dictionary
|
config
the configration information
|
|
Connecter.Connection
|
connection
the connection to the peer
|
boolean
|
interested
whether the peer is interested
|
int
|
max_slice_length
maximum length chunk to send to peers
|
|
DebTorrent.CurrentRateMeasure.Measure
|
measure
for measuring the upload rate to the peer
|
|
BT1.PiecePicker.PiecePicker
|
picker
the PiecePicker instance
|
|
DebTorrent.piecebuffer.SingleBuffer
|
piecebuf
the buffer containing the entire piece currently being downloaded
by the peer
|
int
|
piecedl
the current piece being downloaded by the peer
|
|
RateLimiter.RateLimiter
|
ratelimiter
the RateLimiter instance to use
|
list of int
|
seed_have_list
the list of pieces the peer is allowed to request in super-seed
mode
|
int
|
skipped_count
the number of pieces the peer has refused to request from us in
super-seed mode
|
|
BT1.StorageWrapper.StorageWrapper
|
storage
the StorageWrapper instance
|
boolean
|
super_seeding
whether we are in super-seed mode
|
|
Debtorrent.CurrentRateMeasure.Measure
|
totalup
the Measure instance to use
|
boolean
|
was_ever_interested
whether the peer has ever been interested
|