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

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

공개 메소드들

메소드 설명
Bind ( IPEndPoint remoteEndpoint, IForwardedPort forwardedPort ) : void

Binds the channel to the specified endpoint.

보호된 메소드들

메소드 설명
Close ( ) : void

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

OnData ( byte data ) : void

Called when channel data is received.

OnErrorOccured ( Exception exp ) : void

비공개 메소드들

메소드 설명
ChannelForwardedTcpip ( ISession session, uint localChannelNumber, uint localWindowSize, uint localPacketSize, uint remoteChannelNumber, uint remoteWindowSize, uint remotePacketSize ) : System

Initializes a new ChannelForwardedTcpip instance.

CloseSocket ( ) : void

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

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 the channel to the specified endpoint.
public Bind ( IPEndPoint remoteEndpoint, IForwardedPort forwardedPort ) : void
remoteEndpoint System.Net.IPEndPoint The endpoint to connect to.
forwardedPort IForwardedPort The forwarded port for which the channel is opened.
리턴 void

Close() 보호된 메소드

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

OnData() 보호된 메소드

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

OnErrorOccured() 보호된 메소드

protected OnErrorOccured ( Exception exp ) : void
exp System.Exception
리턴 void