Back to FlowSsh Documentation

Client - SetOptions

[C]

__cdecl FlowSshC_Client_SetOptions
  FlowSshC_Client* client,
  bool startKeyReExchange,
  bool enableKeepAlive);

[C++]

[Client] void SetOptions(bool startKeyReExchange, bool enableKeepAlive);

[C#]

[Client] public void SetOptions(bool startKeyReExchange, bool enableKeepAlive);

Parameters

  • [C] client: FlowSshC_Client pointer.
  • startKeyReExchange: Whether FlowSsh should start key re-exchange. Enabled by default.
  • enableKeepAlive: Whether FlowSsh should periodically generate network traffic when idle, to keep the connection alive. Enabled by default.

Remarks

Key re-exchange and keep-alive are enabled by default, and do not need to be enabled explicitly by calling this method. If starting of key re-exchange is enabled, FlowSsh will start it every hour, or after every 1 GB of transferred data. If starting of key re-exchange is disabled, FlowSsh will still respond to key re-exchanges started by the server.