forked from sshnet/SSH.NET
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIChannelDirectTcpip.cs
More file actions
48 lines (42 loc) · 1.6 KB
/
Copy pathIChannelDirectTcpip.cs
File metadata and controls
48 lines (42 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
using System;
using System.Net.Sockets;
using Renci.SshNet.Common;
namespace Renci.SshNet.Channels
{
/// <summary>
/// A "direct-tcpip" SSH channel.
/// </summary>
internal interface IChannelDirectTcpip : IDisposable
{
/// <summary>
/// Occurs when an exception is thrown while processing channel messages.
/// </summary>
event EventHandler<ExceptionEventArgs> Exception;
/// <summary>
/// Gets a value indicating whether this channel is open.
/// </summary>
/// <value>
/// <see langword="true"/> if this channel is open; otherwise, <see langword="false"/>.
/// </value>
bool IsOpen { get; }
/// <summary>
/// Gets the local channel number.
/// </summary>
/// <value>
/// The local channel number.
/// </value>
uint LocalChannelNumber { get; }
/// <summary>
/// Opens a channel for a locally forwarded TCP/IP port.
/// </summary>
/// <param name="remoteHost">The name of the remote host to forward to.</param>
/// <param name="port">The port of the remote hosts to forward to.</param>
/// <param name="forwardedPort">The forwarded port for which the channel is opened.</param>
/// <param name="socket">The socket to receive requests from, and send responses from the remote host to.</param>
void Open(string remoteHost, uint port, IForwardedPort forwardedPort, Socket socket);
/// <summary>
/// Binds the channel to the remote host.
/// </summary>
void Bind();
}
}