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

Implements "direct-tcpip" SSH channel.
상속: ClientChannel, IChannelDirectTcpip
파일 보기 프로젝트 열기: sshnet/SSH.NET 1 사용 예제들

공개 메소드들

메소드 설명
Bind ( ) : void

Binds channel to remote host.

ChannelDirectTcpip ( ISession session, uint localChannelNumber, uint localWindowSize, uint localPacketSize ) : System

Initializes a new ChannelDirectTcpip instance.

Open ( string remoteHost, uint port, IForwardedPort forwardedPort, Socket socket ) : void

보호된 메소드들

메소드 설명
Close ( ) : void

Closes the channel, waiting for the SSH_MSG_CHANNEL_CLOSE message to be received from the server.

Dispose ( bool disposing ) : void
OnData ( byte data ) : void

Called when channel data is received.

OnDisconnected ( ) : void

Called when the server wants to terminate the connection immmediately.

The sender MUST NOT send or receive any data after this message, and the recipient MUST NOT accept any data after receiving this message.

OnEof ( ) : void

Called when channel has no more data to receive.

OnErrorOccured ( Exception exp ) : void

Called whenever an unhandled Exception occurs in Session causing the message loop to be interrupted, or when an exception occurred processing a channel message.

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

Called when channel is opened by the server.

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

비공개 메소드들

메소드 설명
CloseSocket ( ) : void

Closes the socket, hereby interrupting the blocking receive in Bind().

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 channel to remote host.
public Bind ( ) : void
리턴 void

ChannelDirectTcpip() 공개 메소드

Initializes a new ChannelDirectTcpip instance.
public ChannelDirectTcpip ( 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() 보호된 메소드

Closes the channel, waiting for the SSH_MSG_CHANNEL_CLOSE message to be received from the server.
protected Close ( ) : void
리턴 void

Dispose() 보호된 메소드

protected Dispose ( bool disposing ) : void
disposing bool
리턴 void

OnData() 보호된 메소드

Called when channel data is received.
protected OnData ( byte data ) : void
data byte The data.
리턴 void

OnDisconnected() 보호된 메소드

Called when the server wants to terminate the connection immmediately.
The sender MUST NOT send or receive any data after this message, and the recipient MUST NOT accept any data after receiving this message.
protected OnDisconnected ( ) : void
리턴 void

OnEof() 보호된 메소드

Called when channel has no more data to receive.
protected OnEof ( ) : void
리턴 void

OnErrorOccured() 보호된 메소드

Called whenever an unhandled Exception occurs in Session causing the message loop to be interrupted, or when an exception occurred processing a channel message.
protected OnErrorOccured ( Exception exp ) : void
exp System.Exception
리턴 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() 보호된 메소드

protected OnOpenFailure ( uint reasonCode, string description, string language ) : void
reasonCode uint
description string
language string
리턴 void

Open() 공개 메소드

public Open ( string remoteHost, uint port, IForwardedPort forwardedPort, Socket socket ) : void
remoteHost string
port uint
forwardedPort IForwardedPort
socket Socket
리턴 void