C# Класс Renci.SshNet.ForwardedPort

Base class for port forwarding functionality.
Наследование: IForwardedPort
Показать файл Открыть проект Примеры использования класса

Private Properties

Свойство Тип Описание
RaiseClosing void
Session_ErrorOccured void

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

Метод Описание
Start ( ) : void

Starts port forwarding.

Stop ( ) : void

Stops port forwarding.

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

Метод Описание
CheckDisposed ( ) : void

Ensures the current instance is not disposed.

Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

RaiseExceptionEvent ( Exception exception ) : void

Raises Renci.SshNet.ForwardedPort.Exception event.

RaiseRequestReceived ( string host, uint port ) : void

Raises Renci.SshNet.ForwardedPort.RequestReceived event.

StartPort ( ) : void

Starts port forwarding.

StopPort ( System.TimeSpan timeout ) : void

Stops port forwarding, and waits for the specified timeout until all pending requests are processed.

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

Метод Описание
RaiseClosing ( ) : void

Raises the IForwardedPort.Closing event.

Session_ErrorOccured ( object sender, ExceptionEventArgs e ) : void

Handles session ErrorOccured event.

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

CheckDisposed() защищенный абстрактный метод

Ensures the current instance is not disposed.
The current instance is disposed.
protected abstract CheckDisposed ( ) : void
Результат void

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

Releases unmanaged and - optionally - managed resources
protected Dispose ( bool disposing ) : void
disposing bool true to release both managed and unmanaged resources; false to release only unmanaged resources.
Результат void

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

Raises Renci.SshNet.ForwardedPort.Exception event.
protected RaiseExceptionEvent ( Exception exception ) : void
exception System.Exception The exception.
Результат void

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

Raises Renci.SshNet.ForwardedPort.RequestReceived event.
protected RaiseRequestReceived ( string host, uint port ) : void
host string Request originator host.
port uint Request originator port.
Результат void

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

Starts port forwarding.
public Start ( ) : void
Результат void

StartPort() защищенный абстрактный метод

Starts port forwarding.
protected abstract StartPort ( ) : void
Результат void

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

Stops port forwarding.
public Stop ( ) : void
Результат void

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

Stops port forwarding, and waits for the specified timeout until all pending requests are processed.
protected StopPort ( System.TimeSpan timeout ) : void
timeout System.TimeSpan The maximum amount of time to wait for pending requests to finish processing.
Результат void