SSHChannelDataIn Event
Fired when data is received on an SSH channel.
Syntax
public event OnSSHChannelDataInHandler OnSSHChannelDataIn; public delegate void OnSSHChannelDataInHandler(object sender, SshdaemonSSHChannelDataInEventArgs e); public class SshdaemonSSHChannelDataInEventArgs : EventArgs { public string ConnectionId { get; } public string ChannelId { get; } public string Data { get; }
public byte[] DataB { get; } }
Public Event OnSSHChannelDataIn As OnSSHChannelDataInHandler Public Delegate Sub OnSSHChannelDataInHandler(sender As Object, e As SshdaemonSSHChannelDataInEventArgs) Public Class SshdaemonSSHChannelDataInEventArgs Inherits EventArgs Public ReadOnly Property ConnectionId As String Public ReadOnly Property ChannelId As String Public ReadOnly Property Data As String
Public ReadOnly Property DataB As Byte() End Class
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.