Package Peach :: Package Generators :: Module stun :: Class StunAttribute
[hide private]

Class StunAttribute

source code


This generator creates a STUN attribute.

Instance Methods [hide private]
 
__init__(self, group, type, length, value) source code
 
_getValue(self)
Override me!
source code
 
getRawValue(self) source code
Class Variables [hide private]
  MAPPED_ADDRESS = 0x0001
  RESPONSE_ADDRESS = 0x0002
  CHANGE_REQUEST = 0x0003
  SOURCE_ADDRESS = 0x0004
  CHANGED_ADDRESS = 0x0005
  USERNAME = 0x0006
  PASSWORD = 0x0007
  MESSAGE_INTEGRITY = 0x0008
  ERROR_CODE = 0x0009
  UNKNOWN_ATTRIBUTES = 0x000a
  REFLECTED_FROM = 0x000b
  _type = None
  _length = None
  _generator = None
Method Details [hide private]

__init__(self, group, type, length, value)
(Constructor)

source code 
Parameters:
  • group (Group) - Group to use
  • type (integer) - Attribute type
  • length (integer) - If None length is auto based on value
  • value (Generator) - Attribute value