Rebex
Products Downloads Buy Support Contact
Show / Hide Table of Contents

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
Type Description
Task<SshTunnel>

A tunnel instance.

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
IPEndPoint localEndPoint

Local endpoint to listen at.

Object state

An optional user-provided object that identifies this particular asynchronous operation.

Returns
Type Description
Task<SshTunnel>

A tunnel instance.

In This Article
  • StartSocksServerAsync(String, Int32, Object)
  • StartSocksServerAsync(IPEndPoint, Object)
© REBEX ČR s.r.o. Back to top
Privacy policy
Manage cookies