C# 클래스 Renci.SshNet.ForwardedPort

Base class for port forwarding functionality.
상속: IForwardedPort
파일 보기 프로젝트 열기: sshnet/SSH.NET 1 사용 예제들

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