Client - SetDisconnectHandler, OnDisconnect

[C]

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

[C++]

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

[C#]

[ClientBase] public event DisconnectEventHandler OnDisconnect;

[C] Parameters

[C++/.NET] Overrides and Events

  • OnDisconnect: Invoked when the client is disconnected.
    Parameters:

Remarks

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.