Package Peach :: Package Generators :: Module turn :: Class TurnBandwidthAttribute
[hide private]

Class TurnBandwidthAttribute

source code



BANDWIDTH

The bandwidth attribute represents the peak bandwidth, measured in
kbits per second, that the client expects to use on the binding.  The
value represents the sum in the receive and send directions.
[[Editors note: Need to define leaky bucket parameters for this.]]
        
 0                   1                   2                   3
 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                        Bandwidth                              |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Instance Methods [hide private]
 
__init__(self, group, bandwidth) source code
 
_getValue(self) source code
Class Variables [hide private]

Inherited from TurnAttribute: ALTERNATE_SERVER, BANDWIDTH, DATA, DESTINATION_ADDRESS, LIFETIME, MAGIC_COOKIE, NAT_ADDRESS, NONCE, REALM, REMOTE_ADDRESS

Method Details [hide private]

__init__(self, group, bandwidth)
(Constructor)

source code 
Parameters:
  • group (Group) - Group to use
  • lifetime (Generator) - Lifetime in seconds