|
|
__init__(self,
port,
myid,
infohash,
trackerlist,
config,
sched,
externalsched,
errorfunc,
connect,
howmany,
amount_left,
up,
down,
upratefunc,
downratefunc,
doneflag,
unpauseflag=fakeflag(True),
seededfunc=None,
force_rapid_update=True)
Initialize the instance. |
source code
|
|
|
|
|
|
|
c(self)
Start a periodic general announce request for more peers. |
source code
|
|
|
|
_c(self)
Schedule another general announce request for more peers. |
source code
|
|
|
|
d(self,
event=3)
Start a periodic announce request. |
source code
|
|
|
|
|
|
|
hit(self,
event=3)
Start a specific type of announce request for more peers. |
source code
|
|
|
|
announce(self,
event=3,
callback=<function <lambda> at 0x2b5519901c08>,
specialurl=None)
Create an announce request. |
source code
|
|
|
|
snoop(self,
peers,
callback=<function <lambda> at 0x2b5519901cf8>)
Send an immediate request to the tracker. |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
method
|
amount_left
method to call to determine how much is left to download
|
int
|
announce_interval
the tracker-specified announce interval to use
|
method
|
connect
method to call to start connections to new peers
|
threading.Event
|
doneflag
the flag that indicates when the program is to be shutdown
|
method
|
down
method to call to determine how much has been downloaded
|
method
|
downratefunc
method to call to determine the current download rate
|
dictionary
|
errorcodes
error codes and messages that have occurred
|
method
|
errorfunc
method to call when an error occurs
|
method
|
externalsched
method to call to schedule future invocation of other
functions
|
boolean
|
force_rapid_update
whether to do quick tracker updates when requested
|
method
|
howmany
method to call to determine how many connections are open
|
int
|
interval
minimum time to wait between requesting more peers
|
string
|
ip
IP address to report to the tracker
|
|
unknown
|
last
a tracker parameter
|
boolean
|
last_failed
whether the last request was successful
|
string
|
lastsuccessful
the last tracker address that was successfully contacted
|
|
SuccessLock
|
lock
the locks to use to synchronize threaded tracker requests
|
int
|
maxpeers
number of peers at which to stop initiating new connections
|
int
|
minpeers
minimum number of peers to not do rerequesting
|
boolean
|
never_succeeded
whether there has ever been a successful request
|
string
|
rejectedmessage
the start of the error messages to use when a failure occurs
|
method
|
sched
method to call to schedule future invocation of requester
functions
|
method
|
seededfunc
method to call if the tracker reports the torrent is seeded
|
string
|
special
a special tracker announce address to send a single request to
|
boolean
|
stopped
whether the download is stopped
|
int
|
timeout
time to wait before assuming that a connection has timed out
|
|
unknown
|
trackerid
a tracker parameter
|
list of list of string
|
trackerlist
the trackers to connect to
|
threading.Event
|
unpauseflag
the flag to unset to pause the download
|
method
|
up
method to call to determine how much has been uploaded
|
method
|
upratefunc
method to call to determine the current upload rate
|
string
|
url
the query parameters to send to all trackers
|