|
|
__init__(self,
statusfunc,
finfunc,
errorfunc,
doneflag,
config,
response,
infohash,
id,
rawserver,
port,
appdataobj)
Initialize the instance. |
source code
|
|
boolean
|
|
string
|
saveAs(self,
filefunc,
pathfunc=None)
Initialize the location to save the download to. |
source code
|
|
string
|
|
|
|
|
|
|
|
|
|
|
list of boolean
|
|
boolean
|
|
|
BT1.Uploader.Upload
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
boolean
|
|
|
|
rerequest_complete(self)
Send the completed event to the tracker. |
source code
|
|
|
|
rerequest_stopped(self)
Send the stopped event to the tracker. |
source code
|
|
boolean
|
|
|
|
rerequest_ondownloadmore(self)
Try to trigger a tracker request. |
source code
|
|
|
|
|
|
|
_init_stats(self)
Start the statistics aggregater. |
source code
|
|
method
|
|
|
BT1.Encrypter.Encoder
|
|
boolean
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
dictionary
|
|
dictionary
|
|
string
|
|
|
|
|
dictionary
|
|
boolean
|
|
|
|
|
|
|
Unpause(self)
Schedule the resuming of the download. |
source code
|
|
|
|
|
|
|
set_super_seed(self)
Schedule the change of the upload into super-seed mode. |
source code
|
|
|
|
_set_super_seed(self)
Change the upload into super-seed mode. |
source code
|
|
boolean
|
|
(long, long)
|
|
|
ConfigDir.ConfigDir
|
appdataobj
the configuration and cache directory manager
|
string
|
argslistheader
the header to print before the default config
|
boolean
|
checking
whether the download is in the initialization phase
|
|
BT1.Choker.Choker
|
choker
the Choker instance
|
dictionary
|
config
the configuration variables
|
|
BT1.Connecter.Connecter
|
connecter
the Connecter instance to manage all the connections
|
long
|
datalength
the total length of the download
|
threading.Event
|
doneflag
the flag that indicates when the program is to be shutdown
|
|
BT1.Downloader.Downloader
|
downloader
the Downloader instance
|
|
CurrentRateMeasure.Measure
|
downmeasure
the measure of the download rate
|
|
BT1.Encrypter.Encoder
|
encoder
the port listener for connections
|
method
|
encoder_ban
the method to call to ban and IP address
|
method
|
errorfunc
the method to call when an error occurs
|
threading.Event
|
excflag
whether an exception has occurred
|
boolean
|
failed
whether the download failed
|
threading.Event
|
filedatflag
not used
|
string
|
filename
the save location
|
list of (string, long)
|
files
the full file names and lengths of all the files in the
download
|
|
BT1.FileSelector.FileSelector
|
fileselector
the FileSelector instance
|
threading.Event
|
finflag
whether the download is complete
|
method
|
finfunc
the method to call when the download is completed
|
|
BT1.HTTPDownloader.HTTPDownloader
|
httpdownloader
the backup HTTP downloader
|
dictionary
|
info
the info data from the response data
|
string
|
infohash
the hash of the info from the response data
|
int
|
len_pieces
the number of pieces
|
string
|
myid
the peer ID to use
|
|
BT1.PiecePicker.PiecePicker
|
picker
the PiecePicker instance
|
list of int
|
piece_lengths
the lengths of the pieces
|
list of string
|
pieces
the hashes of the pieces
|
int
|
port
the port being listened to
|
|
RateLimiter.RateLimiter
|
ratelimiter
the RateLimiter instance to limit the upload rate
|
|
RateMeasure.RateMeasure
|
ratemeasure
the RateMeasure instance
|
method
|
ratemeasure_datarejected
the method to call when incoming data failed
|
|
RawServer.RawServer
|
rawserver
the server controlling the program
|
|
BT1.Rerequester.Rerequester
|
rerequest
the Rerequester instance to use to communicate with the
tracker
|
dictionary
|
response
the response data from the metainfo file
|
boolean
|
started
whether the download has been started
|
|
BT1.Statistics.Statistics
|
statistics
the statistics gathering instance
|
method
|
statusfunc
the method to call to print status updates
|
|
BT1.Storage.Storage
|
storage
the file storage instance
|
|
BT1.StorageWrapper.StorageWrapper
|
storagewrapper
the StorageWrapper instance
|
boolean
|
super_seeding_active
whether the download is in super-seed mode
|
threading.Event
|
superseedflag
indicates the upload is in super-seed mode
|
float
|
tcp_ack_fudge
the fraction of TCP ACK download overhead to add to upload rate
calculations
|
threading.Event
|
unpauseflag
the flag to unset to pause the download
|
|
CurrentRateMeasure.Measure
|
upmeasure
the measure of the upload rate
|
float
|
whenpaused
the time when the download was paused
|