The Maverick.NET SSH API

ForwardingClient.StopAllLocalForwarding Method 

Stops all the local forwarding listeners.

[Visual Basic]
Public Sub StopAllLocalForwarding( _
   ByVal killActiveTunnels As Boolean _
)
[C#]
public void StopAllLocalForwarding(
   bool killActiveTunnels
);

Parameters

killActiveTunnels
Set to true if you want all the active tunnels to be dropped as well

Remarks

This method will stop all the local socket listeners for local forwarding configurations.

See Also

ForwardingClient Class | Maverick.Forwarding Namespace