The Maverick.NET SSH API

ForwardingClient.CancelAllRemoteForwardings Method 

Cancels all the remote forwardings currently in operation.

[Visual Basic]
Public Function CancelAllRemoteForwardings( _
   ByVal killActiveTunnels As Boolean _
) As Integer
[C#]
public int CancelAllRemoteForwardings(
   bool killActiveTunnels
);

Parameters

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

Return Value

An integer specifying the number of failures.

Remarks

This method attempts to cancel all the active remote forwarding listeners. The server may deny the requests and so this should not be relied upon to kill all the active remote forwardings.

This method returns the number of cancelation failures reported by the server.

See Also

ForwardingClient Class | Maverick.Forwarding Namespace