UnknownAttr Event

Fires when an unknown attribute is found in an incoming message.

Syntax

public class DefaultTurnEventListener implements TurnEventListener {
  ...
  public void unknownAttr(TurnUnknownAttrEvent e) {}
  ...
}

public class TurnUnknownAttrEvent {
  public int attrType;
  public byte[] value;
  public boolean required;
  public boolean handled;
}

Remarks

This event fires for each unknown attribute (i.e., attributes unrecognized by the class) 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 class will immediately stop parsing and discard the message.

The Handled parameter should be set to specify whether the unknown attribute has been handled.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks P2P 2020 Java Edition - Version 20.0 [Build 8235]