Discuss this help topic in SecureBlackbox Forum

TElCustomSSHSubsystemHandler.OnTerminateRequest

TElCustomSSHSubsystemHandler     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


Declaration

[C#]
    event TSBSSHSubsystemHandlerTerminateRequest OnTerminateRequest;
    delegate void TSBSSHSubsystemHandlerTerminateRequest(Object Sender, ref bool Terminate);

[VB.NET]
    Event OnTerminateRequest As TSBSSHSubsystemHandlerTerminateRequest
    Delegate Sub TSBSSHSubsystemHandlerTerminateRequest(ByVal Sender As Object, ByRef Terminate As Boolean)

[Pascal]
    property OnTerminateRequest : TSBSSHSubsystemHandlerTerminateRequest;
    TSBSSHSubsystemHandlerTerminateRequest = procedure(Sender: TObject; var Terminate: boolean) of object;

[C++]
    void get_OnTerminateRequest(TSBSSHSubsystemHandlerTerminateRequest &pMethodOutResult, void * &pDataOutResult);
    void set_OnTerminateRequest(TSBSSHSubsystemHandlerTerminateRequest pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSSHSubsystemHandlerTerminateRequest)(void * _ObjectData, TObjectHandle Sender, int8_t &Terminate);

[PHP]
    TSBSSHSubsystemHandlerTerminateRequest|callable|NULL get_OnTerminateRequest()
    void set_OnTerminateRequest(TSBSSHSubsystemHandlerTerminateRequest|callable|NULL $Value)
    callable TSBSSHSubsystemHandlerTerminateRequest(TObject $Sender, bool &$Terminate)

[Java]
    TSBSSHSubsystemHandlerTerminateRequest getOnTerminateRequest();
    void setOnTerminateRequest(TSBSSHSubsystemHandlerTerminateRequest Value);
    TSBSSHSubsystemHandlerTerminateRequest.Callback OnTerminateRequest = new TSBSSHSubsystemHandlerTerminateRequest.Callback() {
        public void TSBSSHSubsystemHandlerTerminateRequestCallback(TObject Sender, TSBBoolean Terminate) {
            //...
        }
    }

Parameters

  • Terminate - set this parameter to True if you want to finish handler executing.

Description

    This event is fired by the handler in order to have possibility to stop it from outside.
    If the handler works in a thread, the event handler should look like example:

    procedure TSomeThread.HandleTerminateRequest(Sender: TObject; var Terminate: boolean);
    begin
      Terminate := Self.Terminated;
    end;

See also:     DoTerminateRequest     Terminate     Terminated    

Discuss this help topic in SecureBlackbox Forum