STUNAttribute Type
A STUN attribute.
Remarks
This type represents a STUN attribute.
Fields
AttrType Int |
The attribute type. This field specifies the attribute's type. Valid values are those in the range 0x0000 to 0xFFFF (inclusive). |
Name String? |
The attribute name. This field reflects the attribute's name, which is detected automatically based on its AttrType value. If the current AttrType value is not recognized, this field's value will be Reserved or Unassigned. TBD: Add note about firing UnknownAttr event in certain situations even though the component does technically know the attribute name. (For example, for classic STUN, we do technically know what the FINGERPRINT attribute's name is, but we still fire UnknownAttr since that attribute is no part of classic STUN.) |
Required Boolean |
Indicates whether the attribute is comprehension-required or comprehension-optional. This field indicates whether the attribute is comprehension-required (True) or comprehension-optional (False). Comprehension-required attributes are those whose AttrType values are in the range 0x0000-0x7FFF, while comprehension-optional attributes are those whose AttrType values are in the range 0x8000-0xFFFF. |
Value String |
The attribute value. This field specifies the attribute's value, not including any padding bytes. It may be empty. |
ValueB ByteArray? |
The attribute value. This field specifies the attribute's value, not including any padding bytes. It may be empty. |
Constructors
public constructor()
public constructor(attrType: Int, value: ByteArray?)