IPWorks SSH 2020 Kotlin Edition

Questions / Feedback?

SSHChannelDataIn Event

Fired when data is received on an SSH channel.

Syntax

public open class DefaultSshdaemonEventListener : SshdaemonEventListener {
  ...
  public override fun sshChannelDataIn(e: SshdaemonSSHChannelDataInEvent) {}
  ...
}

public class SshdaemonSSHChannelDataInEvent {
  val connectionId: String?
  val channelId: String?
  val data: ByteArray?
}

Remarks

Whenever a client sends data to an SSH channel, the SSHChannelDataIn event will fire. ChannelId will identify the channel receiving data. Data will contain the raw data being received.

ConnectionId identifies the connection. ChannelId identifies the channel.

Note: Processing long-running requests, including sending channel data, inside this event may cause the underlying transport to stop processing SSH data until the event returns. In order to prevent this from happening, all requests should be processed asynchronously in a separate thread outside of this event.

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