C# 클래스 Renci.SshNet.BaseClient

Serves as base class for client implementations, provides common client functionality.
상속: IDisposable
파일 보기 프로젝트 열기: sshnet/SSH.NET

Private Properties

프로퍼티 타입 설명
BaseClient System
SendKeepAlive void
SendKeepAliveMessage void
Session_ErrorOccured void
Session_HostKeyReceived void
StartKeepAliveTimer void
StopKeepAliveTimer void

공개 메소드들

메소드 설명
Connect ( ) : void

Connects client to the server.

Disconnect ( ) : void

Disconnects client from the server.

Dispose ( ) : void

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

보호된 메소드들

메소드 설명
BaseClient ( ConnectionInfo connectionInfo, bool ownsConnectionInfo ) : System

Initializes a new instance of the BaseClient class.

If ownsConnectionInfo is true, then the connection info will be disposed when this instance is disposed.

CheckDisposed ( ) : void

Check if the current instance is disposed.

Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

OnConnected ( ) : void

Called when client is connected to the server.

OnConnecting ( ) : void

Called when client is connecting to the server.

OnDisconnected ( ) : void

Called when client is disconnected from the server.

OnDisconnecting ( ) : void

Called when client is disconnecting from the server.

비공개 메소드들

메소드 설명
BaseClient ( ConnectionInfo connectionInfo, bool ownsConnectionInfo, IServiceFactory serviceFactory ) : System

Initializes a new instance of the BaseClient class.

If ownsConnectionInfo is true, then the connection info will be disposed when this instance is disposed.

SendKeepAlive ( ) : void
SendKeepAliveMessage ( ) : void
Session_ErrorOccured ( object sender, ExceptionEventArgs e ) : void
Session_HostKeyReceived ( object sender, HostKeyEventArgs e ) : void
StartKeepAliveTimer ( ) : void

Starts the keep-alive timer.

When KeepAliveInterval is negative one (-1) milliseconds, then the timer will not be started.

StopKeepAliveTimer ( ) : void

Stops the keep-alive timer, and waits until all timer callbacks have been executed.

메소드 상세

BaseClient() 보호된 메소드

Initializes a new instance of the BaseClient class.
If ownsConnectionInfo is true, then the connection info will be disposed when this instance is disposed.
is null.
protected BaseClient ( ConnectionInfo connectionInfo, bool ownsConnectionInfo ) : System
connectionInfo ConnectionInfo The connection info.
ownsConnectionInfo bool Specified whether this instance owns the connection info.
리턴 System

CheckDisposed() 보호된 메소드

Check if the current instance is disposed.
THe current instance is disposed.
protected CheckDisposed ( ) : void
리턴 void

Connect() 공개 메소드

Connects client to the server.
The client is already connected. The method was called after the client was disposed. Socket connection to the SSH server or proxy server could not be established, or an error occurred while resolving the hostname. SSH session could not be established. Authentication of SSH session failed. Failed to establish proxy connection.
public Connect ( ) : void
리턴 void

Disconnect() 공개 메소드

Disconnects client from the server.
The method was called after the client was disposed.
public Disconnect ( ) : void
리턴 void

Dispose() 공개 메소드

Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public Dispose ( ) : 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

OnConnected() 보호된 메소드

Called when client is connected to the server.
protected OnConnected ( ) : void
리턴 void

OnConnecting() 보호된 메소드

Called when client is connecting to the server.
protected OnConnecting ( ) : void
리턴 void

OnDisconnected() 보호된 메소드

Called when client is disconnected from the server.
protected OnDisconnected ( ) : void
리턴 void

OnDisconnecting() 보호된 메소드

Called when client is disconnecting from the server.
protected OnDisconnecting ( ) : void
리턴 void