Back to FlowSsh Documentation

Client - AddForwarding

[C]

void __cdecl FlowSshC_Client_AddForwarding(
  FlowSshC_Client* client,
  FlowSshC_ForwardingRule const* rule,
  FlowSshC_ForwardingHandler handler,
  void* handlerData);

[C++]

[Client] void AddForwarding(
  ForwardingRule const& rule,
  RefPtr<ForwardingHandler> const& response);

[C#]

[Client] public void AddForwarding(
  ForwardingRule rule,
  ForwardingHandler response);

Parameters

  • [C] client: FlowSshC_Client pointer.
  • [C] handler: A ForwardingHandler function to be used with the request. Optional.
  • [C] handlerData: An application-defined value to be passed to the handler. Optional.
     
  • rule: A ForwardingRule structure/class.
     
  • [Cpp/Net] response: A ForwardingHandler object to be used with the request. Optional.

Remarks

Initiates a C2S or S2C port forwarding as defined by the given ForwardingRule structure/class. Forwarding fails immediately, if the client is not connected or connecting. If the client is connecting, forwarding will be delayed until the connect operation completes.