C# Class Renci.SshNet.Channels.ChannelForwardedTcpip

Implements "forwarded-tcpip" SSH channel.
Inheritance: ServerChannel, IChannelForwardedTcpip
Afficher le fichier Open project: sshnet/SSH.NET Class Usage Examples

Méthodes publiques

Méthode Description
Bind ( IPEndPoint remoteEndpoint, IForwardedPort forwardedPort ) : void

Binds the channel to the specified endpoint.

Méthodes protégées

Méthode Description
Close ( ) : void

Closes the channel waiting for the SSH_MSG_CHANNEL_CLOSE message to be received from the server.

OnData ( byte data ) : void

Called when channel data is received.

OnErrorOccured ( Exception exp ) : void

Private Methods

Méthode Description
ChannelForwardedTcpip ( ISession session, uint localChannelNumber, uint localWindowSize, uint localPacketSize, uint remoteChannelNumber, uint remoteWindowSize, uint remotePacketSize ) : System

Initializes a new ChannelForwardedTcpip instance.

CloseSocket ( ) : void

Closes the socket, hereby interrupting the blocking receive in Bind(IPEndPoint,IForwardedPort).

ForwardedPort_Closing ( object sender, EventArgs eventArgs ) : void

Occurs as the forwarded port is being stopped.

ShutdownSocket ( SocketShutdown how ) : void

Shuts down the socket.

Method Details

Bind() public méthode

Binds the channel to the specified endpoint.
public Bind ( IPEndPoint remoteEndpoint, IForwardedPort forwardedPort ) : void
remoteEndpoint System.Net.IPEndPoint The endpoint to connect to.
forwardedPort IForwardedPort The forwarded port for which the channel is opened.
Résultat void

Close() protected méthode

Closes the channel waiting for the SSH_MSG_CHANNEL_CLOSE message to be received from the server.
protected Close ( ) : void
Résultat void

OnData() protected méthode

Called when channel data is received.
protected OnData ( byte data ) : void
data byte The data.
Résultat void

OnErrorOccured() protected méthode

protected OnErrorOccured ( Exception exp ) : void
exp System.Exception
Résultat void