|
|
__init__(self,
enabled,
trackerid,
interval,
maxpeers,
timeout,
rawserver)
Initialize the instance. |
source code
|
|
|
|
parse(self,
allowed_list)
Parse a list of allowed torrents and enable any new ones. |
source code
|
|
|
|
|
boolean
|
|
list of (string, string,
int)
|
|
{string: boolean, ...}
|
disallowed
keys are the tracker addresses, values are True if the tracker is
disallowing this tracker
|
boolean
|
enabled
whether to enable multitracker operation
|
int
|
interval
seconds between outgoing tracker announces
|
{string: {string: T2TConnection, ...}, ...}
|
list
keys are the tracker addresses, values are dictionaries with
torrent info hashes as keys and the connection to that tracker for
that torrent as values
|
int
|
maxpeers
number of peers to get in a tracker announce
|
list of T2TConnection
|
oldtorrents
deactivated connections that are kept in case threads try to
access them
|
|
DebTorrent.RawServer.RawServer
|
rawserver
the server instance to use
|
int
|
timeout
number of seconds to wait before assuming that a tracker
connection has timed out
|
{string: [T2TConnection, ...], ...}
|
torrents
keys are the info hashes, values are a list of the tracker
connections for that torrent
|
string
|
trackerid
this tracker's ID
|