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
- client: FlowSshC_Client pointer.
- handler: A DisconnectHandler function.
- handlerData: An application-defined value to be passed to the handler. Optional.
[C++/.NET] Overrides and Events
- OnDisconnect: Invoked when the client is disconnected.
Parameters:- reason: DisconnectReason enumeration.
- desc: A human-readable disconnect reason.
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.