IPWorks SSH 2020 Kotlin Edition

Questions / Feedback?

ConnectionStatus Event

Fired to indicate changes in connection state.

Syntax

public open class DefaultSshclientEventListener : SshclientEventListener {
  ...
  public override fun connectionStatus(e: SshclientConnectionStatusEvent) {}
  ...
}

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

Remarks

The ConnectionStatus event is fired when the connection state changes: completion of a firewall or proxy connection, completion of a security handshake, etc.

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

Firewall connection complete.
SSL or S/Shell handshake complete (where applicable).
Remote host connection complete.
Remote host disconnected.
SSL or S/Shell connection broken.
Firewall host disconnected.

StatusCode has the error code returned by the TCP/IP stack. Description contains a description of this code. The value of StatusCode is equal to the value of the error.

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks SSH 2020 Kotlin Edition - Version 20.0 [Build 7941]