Package DebTorrent :: Package BT1 :: Module Encrypter :: Class IncompleteCounter
[hide private]
[frames] | no frames]

Class IncompleteCounter

source code

Keep track of the number of oustanding incomplete connections.

Instance Methods [hide private]
 
__init__(self)
Initialize the counter.
source code
 
increment(self)
Increment the counter.
source code
 
decrement(self)
Decrement the counter.
source code
boolean
toomany(self)
Determine if the maximum number of incomplete connections has been reached.
source code
Instance Variables [hide private]
int c
the number of outstanding incomplete connections
Method Details [hide private]

toomany(self)

source code 
Determine if the maximum number of incomplete connections has been reached.
Returns: boolean
whether the maximum has been reached