Class ForwardedPortDynamic
Provides functionality for forwarding connections from the client to destination servers via the SSH server, also known as dynamic port forwarding.
public class ForwardedPortDynamic : ForwardedPort, IForwardedPort, IDisposable
- Inheritance
-
ForwardedPortDynamic
- Implements
- Inherited Members
Constructors
ForwardedPortDynamic(string, uint)
Initializes a new instance of the ForwardedPortDynamic class.
public ForwardedPortDynamic(string host, uint port)
Parameters
ForwardedPortDynamic(uint)
Initializes a new instance of the ForwardedPortDynamic class.
public ForwardedPortDynamic(uint port)
Parameters
port
uintThe port.
Properties
BoundHost
Gets the bound host.
public string BoundHost { get; }
Property Value
BoundPort
Gets the bound port.
public uint BoundPort { get; }
Property Value
IsStarted
Gets a value indicating whether port forwarding is started.
public override bool IsStarted { get; }
Property Value
Methods
CheckDisposed()
Ensures the current instance is not disposed.
protected override void CheckDisposed()
Exceptions
- ObjectDisposedException
The current instance is disposed.
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected override void Dispose(bool disposing)
Parameters
disposing
booltrue to release both managed and unmanaged resources; false to release only unmanaged resources.
~ForwardedPortDynamic()
Finalizes an instance of the ForwardedPortDynamic class.
protected ~ForwardedPortDynamic()
StartPort()
Starts local port forwarding.
protected override void StartPort()
StopPort(TimeSpan)
Stops local port forwarding, and waits for the specified timeout until all pending requests are processed.
protected override void StopPort(TimeSpan timeout)
Parameters
timeout
TimeSpanThe maximum amount of time to wait for pending requests to finish processing.