Back to FlowSsh Documentation

Client - SetDisconnectHandler, OnDisconnect


__cdecl FlowSshC_Client_SetDisconnectHandler(
  FlowSshC_Client* client,
  FlowSshC_DisconnectHandler handler,
  void* handlerData);


[Client] virtual void OnDisconnect(
  unsigned int reason,
  std::wstring const& desc);


[Client] public event DisconnectEventHandler OnDisconnect;

[C] Parameters

[Cpp/Net] Overrides and Events

  • OnDisconnect: Invoked when the client is disconnected.


The disconnect handler can be invoked only on successfully connected clients. Except for a possibly registered progress handler (for a pending [Client]Disconnect request), no other client handlers will be invoked after OnDisconnect.