IPWorks SSH 2020 Kotlin Edition

Questions / Feedback?

ConnectionRequest Event

Fired when a request for connection comes from a remote host.

Syntax

public open class DefaultSshtunnelEventListener : SshtunnelEventListener {
  ...
  public override fun connectionRequest(e: SshtunnelConnectionRequestEvent) {}
  ...
}

public class SshtunnelConnectionRequestEvent {
  val address: String?
  val port: Int
  var accept: Boolean
}

Remarks

This event indicates an incoming connection. The connection is accepted by default. Address and Port will contain information about remote host requesting the inbound connection. If you want to refuse it, you can set the Accept parameter to False.

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