Renci.SshNet.ForwardedPort
Base class for port forwarding functionality.
namespace Renci.SshNet
{
public abstract class ForwardedPort : IForwardedPort
{
public abstract bool IsStarted { get; }
event EventHandler IForwardedPort.Closing;
public event EventHandler<ExceptionEventArgs> Exception;
public event EventHandler<PortForwardEventArgs> RequestReceived;
public virtual void Start();
public virtual void Stop();
protected abstract void StartPort();
protected virtual void StopPort(TimeSpan timeout);
protected virtual void Dispose(bool disposing);
protected abstract void CheckDisposed();
protected void RaiseExceptionEvent(Exception exception);
protected void RaiseRequestReceived(string host, uint port);
protected ForwardedPort();
}
}