SshChannel Class
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9083)
Represents an SSH channel.
Syntax
public class SshChannel : IDisposable
Implements
Inherited Members
Properties
Name | Description |
---|---|
Available | Gets the number of bytes available in the receive buffer. |
ExitStatus | Gets the channel exit status, if available. Otherwise, it returns null. |
ExtendedDataMode | Gets or sets the value indicating how to tread extended channel data. |
State | Gets the state of this channel. |
TerminalHeight | Gets the terminal height. |
TerminalWidth | Gets the terminal width. |
Type | Gets the type of this channel. |
Methods
Name | Description |
---|---|
Close() | Closes the current channel. |
Dispose() | Implementation of IDisposable.Dispose() |
GetAvailable() | Gets the number of bytes available in the receive buffer. If no data is available, the method will process any pending incoming packets. |
PassEnvironmentVariable(String, String) | Passes an environment variable to the shell/command to be started later. |
Poll(Int32, SocketSelectMode) | Determines the status of the socket. |
Receive(Byte[], Int32, Int32) | Receives data send by the server through this channel. |
RequestExec(String) | Requests an execution of the specified command. |
RequestPseudoTerminal() | Requests an 80x25 vt100 pseudo-terminal. |
RequestPseudoTerminal(String, Int32, Int32) | Requests a pseudo-terminal. |
RequestShell() | Requests a shell. |
RequestSubsystem(String) | Requests a specified subsystem. |
Send(Byte[], Int32, Int32) | Sends data to the server through this channel. |
SendBreak(Int32) | Sends a break request to the server. This may or may not have any effect. |
SendEof() | Sends EOF (end-of-file) indicator to the server. No further data should be sent after this. |
SetTerminalSize(Int32, Int32) | Sets a new terminal size. |
Shutdown() | Closes the current channel and does not wait for closure confirmation. |
ToSocket() | Creates an ISocket representation of this channel. |
ToString() | Returns a string representation of this channel. |
Events
Name | Description |
---|---|
ExtendedDataReceived | Occurs when extended data is received from the server. |