ExitHandler Typedef

[C]

typedef void (__cdecl* FlowSshC_ExitHandler)(
  void* handlerData,
  FlowSshC_ExitStatus const* status,
  FlowSshC_ExitSignal const* signal);

Parameters

  • handlerData: Data passed to the initiating call.
  • status: Pointer to an ExitStatus structure.
  • signal: Pointer to an ExitSignal structure.

Remarks

Mostly an ExitHandler is used in combination with the [ClientSessionChannel]ExecRequest method. An ExitHandler returns either the exit code of a remote application or signal information (in case the application terminated violently because of a signal). ExitStatus and ExitSignal are always exclusive - one will be NULL.