SshChannel Class
Namespace: Rebex.Net
Assembly: Rebex.Networking.dll (version 7.0.9147)
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. |
Exit |
Gets the channel exit status, if available. Otherwise, it returns null. |
Extended |
Gets or sets the value indicating how to tread extended channel data. |
State | Gets the state of this channel. |
Terminal |
Gets the terminal height. |
Terminal |
Gets the terminal width. |
Type | Gets the type of this channel. |
Methods
Name | Description |
---|---|
Close() | Closes the current channel. |
Dispose() | Implementation of IDisposable.Dispose() |
Get |
Gets the number of bytes available in the receive buffer. If no data is available, the method will process any pending incoming packets. |
Pass |
Passes an environment variable to the shell/command to be started later. |
Poll(Int32, Socket |
Determines the status of the socket. |
Receive(Byte[], Int32, Int32) | Receives data send by the server through this channel. |
Request |
Requests an execution of the specified command. |
Request |
Requests an 80x25 vt100 pseudo-terminal. |
Request |
Requests a pseudo-terminal. |
Request |
Requests a shell. |
Request |
Requests a specified subsystem. |
Send(Byte[], Int32, Int32) | Sends data to the server through this channel. |
Send |
Sends a break request to the server. This may or may not have any effect. |
Send |
Sends EOF (end-of-file) indicator to the server. No further data should be sent after this. |
Set |
Sets a new terminal size. |
Shutdown() | Closes the current channel and does not wait for closure confirmation. |
To |
Creates an ISocket representation of this channel. |
To |
Returns a string representation of this channel. |
Events
Name | Description |
---|---|
Extended |
Occurs when extended data is received from the server. |