Method | Description | |
---|---|---|
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 |
Method | Description | |
---|---|---|
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 ( |
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 |
Method | Description | |
---|---|---|
CloseSocket ( ) : void |
Closes the socket, hereby interrupting the blocking receive in Bind().
|
|
ForwardedPort_Closing ( object sender, |
Occurs as the forwarded port is being stopped.
|
|
ShutdownSocket ( SocketShutdown how ) : void |
Shuts down the socket.
|
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. |
return | System |
protected OnErrorOccured ( |
||
exp | ||
return | void |
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. |
return | void |
protected OnOpenFailure ( uint reasonCode, string description, string language ) : void | ||
reasonCode | uint | |
description | string | |
language | string | |
return | void |
public Open ( string remoteHost, uint port, IForwardedPort forwardedPort, Socket socket ) : void | ||
remoteHost | string | |
port | uint | |
forwardedPort | IForwardedPort | |
socket | Socket | |
return | void |