IPWorks P2P 2020 Kotlin Edition

Questions / Feedback?

ConnectionStatus Event

Fired to indicate changes in connection state.

Syntax

public open class DefaultRudpclientEventListener : RudpclientEventListener {
  ...
  public override fun connectionStatus(e: RudpclientConnectionStatusEvent) {}
  ...
}

public class RudpclientConnectionStatusEvent {
  val connectionEvent: String?
  val statusCode: Int
  val description: String?
}

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) 2021 /n software inc. - All rights reserved.
IPWorks P2P 2020 Kotlin Edition - Version 20.0 [Build 7941]