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

Class StunChangedAddressAttribute

source code


CHANGED-ADDRESS

The CHANGED-ADDRESS attribute indicates the IP address and port where responses would have been sent from if the "change IP" and "change port" flags had been set in the CHANGE-REQUEST attribute of the Binding Request. The attribute is always present in a Binding Response, independent of the value of the flags. Its syntax is identical to 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__