Ssh.StartOutgoingTunnelAsync Method
Namespace: Rebex.Net
Assembly: Rebex.SshShell.dll (version 7.0.9048)
StartOutgoingTunnelAsync(IPEndPoint, IPEndPoint, Object)
Begins asynchronous StartOutgoingTunnel operation. Starts a new outgoing tunnel. Connections to local endpoint will be tunneled through the SSH server to the specified remote endpoint.
Declaration
public Task<SshTunnel> StartOutgoingTunnelAsync(IPEndPoint localEndPoint, IPEndPoint targetEndPoint, object state = null)
Parameters
Type | Name | Description |
---|---|---|
IPEndPoint | localEndPoint | Local endpoint to listen at. |
IPEndPoint | targetEndPoint | Target endpoint to which to tunnel connections. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<SshTunnel> | A tunnel instance. |
StartOutgoingTunnelAsync(String, Int32, String, Int32, Object)
Begins asynchronous StartOutgoingTunnel operation. Starts a new outgoing tunnel. Connections to local host/port will be tunneled through the SSH server to the specified remote host/port.
Declaration
public Task<SshTunnel> StartOutgoingTunnelAsync(string localHostName, int localPort, string targetHostName, int targetPort, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | localHostName | Local hostname to listen at. |
Int32 | localPort | Local port to listen at. |
String | targetHostName | Target hostname to which to tunnel connections. |
Int32 | targetPort | Target port to which to tunnel connections. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<SshTunnel> | A tunnel instance. |
StartOutgoingTunnelAsync(IPEndPoint, String, Int32, Object)
Begins asynchronous StartOutgoingTunnel operation. Starts a new outgoing tunnel. Connections to local endpoint will be tunneled through the SSH server to the specified remote host/port.
Declaration
public Task<SshTunnel> StartOutgoingTunnelAsync(IPEndPoint localEndPoint, string targetHostName, int targetPort, object state = null)
Parameters
Type | Name | Description |
---|---|---|
IPEndPoint | localEndPoint | Local endpoint to listen at. |
String | targetHostName | Target hostname to which to tunnel connections. |
Int32 | targetPort | Target port to which to tunnel connections. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
Type | Description |
---|---|
Task<SshTunnel> | A tunnel instance. |