SSHChannelReadyToSend Event

Fired when the component is ready to send data.

Syntax

public event OnSSHChannelReadyToSendHandler OnSSHChannelReadyToSend;

public delegate void OnSSHChannelReadyToSendHandler(object sender, SshdaemonSSHChannelReadyToSendEventArgs e);

public class SshdaemonSSHChannelReadyToSendEventArgs : EventArgs {
  public string ConnectionId { get; }
  public string ChannelId { get; }
}
Public Event OnSSHChannelReadyToSend As OnSSHChannelReadyToSendHandler

Public Delegate Sub OnSSHChannelReadyToSendHandler(sender As Object, e As SshdaemonSSHChannelReadyToSendEventArgs)

Public Class SshdaemonSSHChannelReadyToSendEventArgs Inherits EventArgs
  Public ReadOnly Property ConnectionId As String
  Public ReadOnly Property ChannelId As String
End Class

Remarks

This event fires when data can be sent over the SSH Channel specified by ChannelId for the connection specified by ConnectionId.

When a channel is opened this event will fire once the channel is ready and data can be sent.

When Timeout is set to 0 (asynchronous) sending data may result in an error if the channel or underlying socket cannot accept more data to send. Monitor SSHChannelReadyToSend or ReadyToSend to determine when data can be sent again.

When Timeout is set to a positive value the component will block when sending data until the data can be successfully sent and SSHChannelReadyToSend and ReadyToSend do not need to be monitored.

Copyright (c) 2023 /n software inc. - All rights reserved.
IPWorks SSH 2020 .NET Edition - Version 20.0 [Build 8501]