C# Class Renci.SshNet.Channels.ClientChannel

Inheritance: Channel
ファイルを表示 Open project: sshnet/SSH.NET

Protected Methods

Method Description
ClientChannel ( ISession session, uint localChannelNumber, uint localWindowSize, uint localPacketSize ) : System

Initializes a new ClientChannel instance.

Dispose ( bool disposing ) : void
OnOpenConfirmation ( uint remoteChannelNumber, uint initialWindowSize, uint maximumPacketSize ) : void

Called when channel is opened by the server.

OnOpenFailure ( uint reasonCode, string description, string language ) : void

Called when channel failed to open.

SendMessage ( ChannelOpenMessage message ) : void

Send message to open a channel.

Private Methods

Method Description
OnChannelOpenConfirmation ( object sender, MessageEventArgs e ) : void
OnChannelOpenFailure ( object sender, MessageEventArgs e ) : void
UnsubscribeFromSessionEvents ( ISession session ) : void

Unsubscribes the current ClientChannel from session events.

Does nothing when session is null.

Method Details

ClientChannel() protected method

Initializes a new ClientChannel instance.
protected ClientChannel ( ISession session, uint localChannelNumber, uint localWindowSize, uint localPacketSize ) : System
session ISession The session.
localChannelNumber uint The local channel number.
localWindowSize uint Size of the window.
localPacketSize uint Size of the packet.
return System

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

OnOpenConfirmation() protected method

Called when channel is opened by the server.
protected OnOpenConfirmation ( uint remoteChannelNumber, uint initialWindowSize, uint maximumPacketSize ) : void
remoteChannelNumber uint The remote channel number.
initialWindowSize uint Initial size of the window.
maximumPacketSize uint Maximum size of the packet.
return void

OnOpenFailure() protected method

Called when channel failed to open.
protected OnOpenFailure ( uint reasonCode, string description, string language ) : void
reasonCode uint The reason code.
description string The description.
language string The language.
return void

SendMessage() protected method

Send message to open a channel.
protected SendMessage ( ChannelOpenMessage message ) : void
message ChannelOpenMessage Message to send
return void