C# 클래스 Renci.SshNet.Channels.ChannelSession

Implements Session SSH channel.
상속: Channel
파일 보기 프로젝트 열기: sshnet/SSH.NET 1 사용 예제들

공개 메소드들

메소드 설명
ChannelSession ( ISession session, uint localChannelNumber, uint localWindowSize, uint localPacketSize ) : System

Initializes a new ChannelSession instance.

Open ( ) : void

Opens the channel.

SendBreakRequest ( uint breakLength ) : bool

Sends the exec request.

SendEndOfWriteRequest ( ) : bool

Sends [email protected] request.

SendEnvironmentVariableRequest ( string variableName, string variableValue ) : bool

Sends the environment variable request.

SendExecRequest ( string command ) : bool

Sends the exec request.

SendExitSignalRequest ( string signalName, bool coreDumped, string errorMessage, string language ) : bool

Sends the exit signal request.

SendExitStatusRequest ( uint exitStatus ) : bool

Sends the exit status request.

SendKeepAliveRequest ( ) : bool

Sends [email protected] request.

SendLocalFlowRequest ( bool clientCanDo ) : bool

Sends the local flow request.

SendPseudoTerminalRequest ( string environmentVariable, uint columns, uint rows, uint width, uint height, uint>.IDictionary terminalModeValues ) : bool

Sends the pseudo terminal request.

SendShellRequest ( ) : bool

Sends the shell request.

SendSignalRequest ( string signalName ) : bool

Sends the signal request.

SendSubsystemRequest ( string subsystem ) : bool

Sends the subsystem request.

SendWindowChangeRequest ( uint columns, uint rows, uint width, uint height ) : bool

Sends the window change request.

SendX11ForwardingRequest ( bool isSingleConnection, string protocol, byte cookie, uint screenNumber ) : bool

Sends the X11 forwarding request.

보호된 메소드들

메소드 설명
Close ( ) : void
Dispose ( bool disposing ) : void

Releases unmanaged and - optionally - managed resources

OnFailure ( ) : void

Called when channel request failed.

OnOpenConfirmation ( uint remoteChannelNumber, uint initialWindowSize, uint maximumPacketSize ) : void

Called when channel is opened by the server.

OnOpenFailure ( uint reasonCode, string description, string language ) : void

Called when channel failed to open.

OnSuccess ( ) : void

Called when channel request was successful

SendChannelOpenMessage ( ) : void

Sends the channel open message.

비공개 메소드들

메소드 설명
ReleaseSemaphore ( ) : void

Releases the session semaphore.

When the session semaphore has already been released, or was never obtained by this instance, then this method does nothing.

메소드 상세

ChannelSession() 공개 메소드

Initializes a new ChannelSession instance.
public ChannelSession ( ISession session, uint localChannelNumber, uint localWindowSize, uint localPacketSize ) : System
session ISession The session.
localChannelNumber uint The local channel number.
localWindowSize uint Size of the window.
localPacketSize uint Size of the packet.
리턴 System

Close() 보호된 메소드

protected Close ( ) : 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

OnFailure() 보호된 메소드

Called when channel request failed.
protected OnFailure ( ) : void
리턴 void

OnOpenConfirmation() 보호된 메소드

Called when channel is opened by the server.
protected OnOpenConfirmation ( uint remoteChannelNumber, uint initialWindowSize, uint maximumPacketSize ) : void
remoteChannelNumber uint The remote channel number.
initialWindowSize uint Initial size of the window.
maximumPacketSize uint Maximum size of the packet.
리턴 void

OnOpenFailure() 보호된 메소드

Called when channel failed to open.
protected OnOpenFailure ( uint reasonCode, string description, string language ) : void
reasonCode uint The reason code.
description string The description.
language string The language.
리턴 void

OnSuccess() 보호된 메소드

Called when channel request was successful
protected OnSuccess ( ) : void
리턴 void

Open() 공개 메소드

Opens the channel.
public Open ( ) : void
리턴 void

SendBreakRequest() 공개 메소드

Sends the exec request.
public SendBreakRequest ( uint breakLength ) : bool
breakLength uint Length of the break.
리턴 bool

SendChannelOpenMessage() 보호된 메소드

Sends the channel open message.
protected SendChannelOpenMessage ( ) : void
리턴 void

SendEndOfWriteRequest() 공개 메소드

Sends [email protected] request.
public SendEndOfWriteRequest ( ) : bool
리턴 bool

SendEnvironmentVariableRequest() 공개 메소드

Sends the environment variable request.
public SendEnvironmentVariableRequest ( string variableName, string variableValue ) : bool
variableName string Name of the variable.
variableValue string The variable value.
리턴 bool

SendExecRequest() 공개 메소드

Sends the exec request.
public SendExecRequest ( string command ) : bool
command string The command.
리턴 bool

SendExitSignalRequest() 공개 메소드

Sends the exit signal request.
public SendExitSignalRequest ( string signalName, bool coreDumped, string errorMessage, string language ) : bool
signalName string Name of the signal.
coreDumped bool if set to true [core dumped].
errorMessage string The error message.
language string The language.
리턴 bool

SendExitStatusRequest() 공개 메소드

Sends the exit status request.
public SendExitStatusRequest ( uint exitStatus ) : bool
exitStatus uint The exit status.
리턴 bool

SendKeepAliveRequest() 공개 메소드

Sends [email protected] request.
public SendKeepAliveRequest ( ) : bool
리턴 bool

SendLocalFlowRequest() 공개 메소드

Sends the local flow request.
public SendLocalFlowRequest ( bool clientCanDo ) : bool
clientCanDo bool if set to true [client can do].
리턴 bool

SendPseudoTerminalRequest() 공개 메소드

Sends the pseudo terminal request.
public SendPseudoTerminalRequest ( string environmentVariable, uint columns, uint rows, uint width, uint height, uint>.IDictionary terminalModeValues ) : bool
environmentVariable string The environment variable.
columns uint The columns.
rows uint The rows.
width uint The width.
height uint The height.
terminalModeValues uint>.IDictionary The terminal mode values.
리턴 bool

SendShellRequest() 공개 메소드

Sends the shell request.
public SendShellRequest ( ) : bool
리턴 bool

SendSignalRequest() 공개 메소드

Sends the signal request.
public SendSignalRequest ( string signalName ) : bool
signalName string Name of the signal.
리턴 bool

SendSubsystemRequest() 공개 메소드

Sends the subsystem request.
public SendSubsystemRequest ( string subsystem ) : bool
subsystem string The subsystem.
리턴 bool

SendWindowChangeRequest() 공개 메소드

Sends the window change request.
public SendWindowChangeRequest ( uint columns, uint rows, uint width, uint height ) : bool
columns uint The columns.
rows uint The rows.
width uint The width.
height uint The height.
리턴 bool

SendX11ForwardingRequest() 공개 메소드

Sends the X11 forwarding request.
public SendX11ForwardingRequest ( bool isSingleConnection, string protocol, byte cookie, uint screenNumber ) : bool
isSingleConnection bool if set to true the it is single connection.
protocol string The protocol.
cookie byte The cookie.
screenNumber uint The screen number.
리턴 bool