|
|
__init__(self,
sched,
unitsize,
slotsfunc=<function <lambda> at 0x2b55198e5f50>)
Initialize the instance. |
source code
|
|
|
|
|
|
|
|
|
|
try_send(self,
check_time=True)
Loop through the circular queue of upload connections, trying to
send on each. |
source code
|
|
|
|
|
|
|
ping(self,
delay)
Use the new ping time to calculate an automatically adjusted
upload limit. |
source code
|
|
boolean
|
autoadjust
whether the upload limit is being automatically adjusted
|
int
|
autoadjustup
number of cycles remaining before adjusting up the upload rate
|
int
|
bytes_sent
the number of bytes sent on the most recent attempt
|
|
BT1.Connecter.Connection
|
last
the last connection on the circular queue of connections to send
on
|
float
|
lasttime
the last time data was sent
|
|
CurrentRateMeasure.Measure
|
measure
the measurer to use to help calculate the upload rate
|
list of boolean
|
pings
the latest ping results, True if the threshold was exceeded
|
method
|
sched
the method to call to schedule a task with the server
|
int
|
slots
the number of upload slots to use (for automatic adjustment)
|
method
|
slotsfunc
the method to call to set the number of connections limits
|
int
|
unitsize
when limiting upload rate, how many bytes to send at a time
|
float
|
upload_rate
the maximum upload rate to limit to
|