Table of Contents

Class SshDynamicPortForwarder

Namespace
SshSharp
Assembly
SshSharp.dll

A SOCKS proxy (dynamic forwarding, ssh -D) started by ForwardDynamicPortAsync(IPEndPoint, CancellationToken): applications connect to LocalEndPoint as a SOCKS 4, 4a or 5 proxy (CONNECT, no authentication), and each connection is made by the server to the address the application asked for. Dispose it to stop listening and close the connections.

public sealed class SshDynamicPortForwarder : IAsyncDisposable
Inheritance
SshDynamicPortForwarder
Implements
Inherited Members

Properties

ActiveConnections

How many proxied connections are open now.

LocalEndPoint

The local address and port being listened on (with the actual port when 0 was asked for).

Methods

DisposeAsync()

Stops listening and closes every proxied connection.