Ssh.StartSocksServerAsync Method
Namespace: Rebex.Net
Assembly: Rebex.SshShell.dll (version 7.0.9147)
StartSocksServerAsync(String, Int32, Object)
Begins asynchronous StartSocksServer 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> StartSocksServerAsync(string localHostName, int localPort, object state = null)
Parameters
Type | Name | Description |
---|---|---|
String | localHostName | Local hostname to listen at. |
Int32 | localPort | Local port to listen at. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |
Returns
StartSocksServerAsync(IPEndPoint, Object)
Begins asynchronous StartSocksServer 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> StartSocksServerAsync(IPEndPoint localEndPoint, object state = null)
Parameters
Type | Name | Description |
---|---|---|
IPEnd |
localEndPoint | Local endpoint to listen at. |
Object | state | An optional user-provided object that identifies this particular asynchronous operation. |