<PackageReference Include="SSH.NET" Version="2014.4.6-beta1" />

ForwardedPort

public abstract class ForwardedPort
Base class for port forwarding functionality.
public bool IsStarted { get; protected set; }

Gets or sets a value indicating whether port forwarding started.

Occurs when exception is thrown.

Occurs when port forwarding request received.

protected ForwardedPort()

protected void RaiseExceptionEvent(Exception execption)

Raises Exception event.

protected void RaiseRequestReceived(string host, uint port)

Raises RequestReceived event.

public virtual void Start()

Starts port forwarding.

public virtual void Stop()

Stops port forwarding.