ConnectionStatus Event

Fired to indicate changes in connection state.

Syntax

public class DefaultRudpclientEventListener implements RudpclientEventListener {
  ...
  public void connectionStatus(RudpclientConnectionStatusEvent e) {}
  ...
}

public class RudpclientConnectionStatusEvent {
  public String connectionEvent;
  public int statusCode;
  public String description;
}

Remarks

The ConnectionStatus event is fired when the connection state changes: completion of a connection, etc.

The ConnectionEvent parameter indicates the type of connection event. Values may include:

Remote host connection complete.
Remote host disconnected.

StatusCode has the error code. If there is no error the value will be 0. Description contains a description of this code.

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