Channel
Represents base class for SSH channel implementations.
Gets the type of the channel.
Gets the connection info.
Gets a value indicating whether the session is connected.
Gets a value indicating whether this channel is open.
Gets the local channel number.
Gets the maximum size of a packet.
Gets the size of the local window.
Gets the remote channel number.
Gets the maximum size of a data packet that we can send using the channel.
Gets the window size of the remote server.
Gets the session.
Gets the session semaphore to control number of session channels
Occurs when ChannelCloseMessage message received
Occurs when ChannelDataMessage message received
Occurs when ChannelEofMessage message received
Occurs when an exception is thrown when processing channel messages.
Occurs when ChannelExtendedDataMessage message received
Occurs when ChannelFailureMessage message received
Occurs when ChannelRequestMessage message received
Occurs when ChannelSuccessMessage message received
protected Channel(ISession session, uint localChannelNumber, uint localWindowSize, uint localPacketSize)
Initializes a new Channel instance.
Closes the channel.
Closes the channel, optionally waiting for the SSH_MSG_CHANNEL_CLOSE message to
be received from the server.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
Releases unmanaged and - optionally - managed resources
protected void InitializeRemoteInfo(uint remoteChannelNumber, uint remoteWindowSize, uint remotePacketSize)
Called when an Exception occurs while processing a channel message.
Called when channel is closed by the server.
Called when channel data is received.
Called when channel has no more data to receive.
Called when channel extended data is received.
Called when channel request failed.
Called when channel request received.
Called when channel request was successful
Called when channel window need to be adjust.
Raises Exception event.
Sends a SSH_MSG_CHANNEL_DATA message with the specified payload.
Sends a SSH_MSG_CHANNEL_DATA message with the specified payload.
Sends a SSH_MSG_CHANNEL_EOF message to the remote server.
Sends SSH message to the server.
Waits for the handle to be signaled or for an error to occurs.