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

Class TurnLifetimeAttribute

source code



LIFETIME

The lifetime attribute represents the duration for which the server
will maintain a binding in the absence of data traffic either from or
to the client.  It is a 32 bit value representing the number of
seconds remaining until expiration.

 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
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
|                        Lifetime                               |
+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Instance Methods [hide private]
 
__init__(self, group, lifetime) 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, lifetime)
(Constructor)

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