UnknownAttr Event
Fires when an unknown attribute is found in an incoming message.
Syntax
public open class DefaultStunEventListener : StunEventListener { ... public override fun unknownAttr(e: StunUnknownAttrEvent) {} ... } public class StunUnknownAttrEvent { val attrType: Int val value: ByteArray? val required: Boolean var handled: Boolean }
Remarks
This event fires for each unknown attribute (i.e., attributes unrecognized by the component) found while parsing an incoming message.
The AttrType parameter indicates the unknown attribute's type.
The Value parameter reflects the data carried by the attribute, if any.
The Required parameter indicates whether the unknown attribute is comprehension-required (True) or comprehension-optional (False). Comprehension-required attributes must be handled, otherwise the component will immediately stop parsing and discard the message.
The Handled parameter should be set to specify whether the unknown attribute has been handled.