diameter.AVP_Address

 

Classes
       
diameter.AVP.AVP
AVP_Address

class AVP_Address(diameter.AVP.AVP)
    An internet address AVP.
This class reflects the Address type AVP described in RFC3588.
It supports both IPv4 and IPv6.
Note: Values not conforming to RFC3588 has been seen in the wild.
 
  Methods defined here:
__init__(self, code, address, vendor_id=0)
Constructs an AVP_Address. The address is expected to tuple (family,address)
__str__(self)
queryAddress(self)
Returns the payload as a tuple (family,address)
Raises: InvalidAddressTypeError
setAddress(self, address)
Sets the payload. The address is expected to tuple (family,address)
Raises: InvalidAddressTypeError

Static methods defined here:
narrow(avp)
Convert a generic AVP to AVP_Address
Attempts to interpret the payload as an address and returns
an AVP_Address instance on success.
Raises: InvalidAVPLengthError

Methods inherited from diameter.AVP.AVP:
decode(self, unpacker, bytes)
encode(self, packer)
encodeSize(self)
isMandatory(self)
Returns if the mandatory (M) flag is set
isPrivate(self)
Returns if the private (P) flag is set
isVendorSpecific(self)
Returns if the AVP is vendor-specific (has non-zero vendor_id)
setM(self)
Sets the M-bit and returns the instance
setMandatory(self, f)
Sets/unsets the mandatory (M) flag
setPrivate(self, f)
Sets/unsets the private (P) flag
str_prefix__(self)
Return a string prefix suitable for building a __str__ result

Static methods inherited from diameter.AVP.AVP:
decodeSize(unpacker, bytes)

Data and other attributes inherited from diameter.AVP.AVP:
avp_flag_mandatory = 64
avp_flag_private = 32
avp_flag_vendor = 128

Data
        __package__ = 'diameter'