Package DebTorrent :: Package BT1 :: Module Downloader :: Class PerIPStats
[hide private]
[frames] | no frames]

Class PerIPStats

source code

Statistics relating to downloads from a single peer.

Instance Methods [hide private]
 
__init__(self, ip)
Initialize the statistics.
source code
Instance Variables [hide private]
dictionary bad
keys are piece numbers, values are the number of bad copies of the piece received from the peer
SingleDownload lastdownload
the most recent SingleDownload instance
int numconnections
the number of connections made to the peer
int numgood
the number of good pieces received
string peerid
the peer's ID
Method Details [hide private]

__init__(self, ip)
(Constructor)

source code 
Initialize the statistics.
Parameters:
  • ip (string) - the IP address of the peer (not used)