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

Class StunSourceAddressAttribute

source code


SOURCE-ADDRESS

The SOURCE-ADDRESS attribute is present in Binding Responses. It indicates the source IP address and port that the server is sending the response from. Its syntax is identical to that of MAPPED- ADDRESS.

Instance Methods [hide private]
 
__init__(self, group, port, address, family=0x01) source code

Inherited from StunMappedAddressAttribute: next, reset

Inherited from StunMappedAddressAttribute (private): _getValue

Inherited from StunAttribute: getRawValue

Class Variables [hide private]

Inherited from StunMappedAddressAttribute (private): _address, _empty, _family, _port

Inherited from StunAttribute: CHANGED_ADDRESS, CHANGE_REQUEST, ERROR_CODE, MAPPED_ADDRESS, MESSAGE_INTEGRITY, PASSWORD, REFLECTED_FROM, RESPONSE_ADDRESS, SOURCE_ADDRESS, UNKNOWN_ATTRIBUTES, USERNAME

Inherited from StunAttribute (private): _generator, _length, _type

Method Details [hide private]

__init__(self, group, port, address, family=0x01)
(Constructor)

source code 
Parameters:
  • group (Group) - Group to use
  • family (Generator) - Family (defaults to 0x01 IPV4)
  • port (Generator) - Port number
  • address (Generator) - 32bit IPv4 address
Overrides: StunAttribute.__init__