C# Class Renci.SshNet.Channels.ClientChannel

Inheritance: Channel
Afficher le fichier Open project: sshnet/SSH.NET

Méthodes protégées

Méthode 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

Méthode 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 méthode

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.
Résultat System

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

OnOpenConfirmation() protected méthode

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.
Résultat void

OnOpenFailure() protected méthode

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.
Résultat void

SendMessage() protected méthode

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