Starts a new outgoing tunnel. Connections to local endpoint will be tunneled through the SSH server to the specified remote endpoint.

Namespace:  Rebex.Net
Assembly:  Rebex.SshShell (in Rebex.SshShell.dll)

Syntax

Visual Basic
Public Function StartOutgoingTunnel ( _
	localEndPoint As IPEndPoint, _
	targetEndPoint As IPEndPoint _
) As SshTunnel
C#
public SshTunnel StartOutgoingTunnel(
	IPEndPoint localEndPoint,
	IPEndPoint targetEndPoint
)

Parameters

localEndPoint
Type: System.Net..::..IPEndPoint
Local endpoint to listen at.
targetEndPoint
Type: System.Net..::..IPEndPoint
Target endpoint to which to tunnel connections.

Return Value

A tunnel instance.

Version Information

.NET Compact Framework

Supported in: 3.9, 3.5

See Also