C# Класс Renci.SshNet.Channels.ChannelForwardedTcpip

Implements "forwarded-tcpip" SSH channel.
Наследование: ServerChannel, IChannelForwardedTcpip
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Bind ( IPEndPoint remoteEndpoint, IForwardedPort forwardedPort ) : void

Binds the channel to the specified endpoint.

Защищенные методы

Метод Описание
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

Приватные методы

Метод Описание
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.

Описание методов

Bind() публичный метод

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.
Результат void

Close() защищенный метод

Closes the channel waiting for the SSH_MSG_CHANNEL_CLOSE message to be received from the server.
protected Close ( ) : void
Результат void

OnData() защищенный метод

Called when channel data is received.
protected OnData ( byte data ) : void
data byte The data.
Результат void

OnErrorOccured() защищенный метод

protected OnErrorOccured ( Exception exp ) : void
exp System.Exception
Результат void