Discuss this help topic in SecureBlackbox Forum


TElSSHServer     See also     

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

This event is fired when the client requested execution of the command.


    event TSSHBeforeOpenCommandEvent OnBeforeOpenCommand;
    delegate void TSSHBeforeOpenCommandEvent(Object Sender, TElSSHTunnelConnection Connection, string Command, ref bool Accept);

    Event OnBeforeOpenCommand As TSSHBeforeOpenCommandEvent
    Delegate Sub TSSHBeforeOpenCommandEvent(ByVal Sender As Object, ByVal Connection As TElSSHTunnelConnection, ByVal Command As String, ByRef Accept As Boolean)

    property OnBeforeOpenCommand : TSSHBeforeOpenCommandEvent;
    TSSHBeforeOpenCommandEvent = procedure(Sender: TObject; Connection : TElSSHTunnelConnection; const Command: string; var Accept : boolean) of object;

    void get_OnBeforeOpenCommand(TSSHBeforeOpenCommandEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnBeforeOpenCommand(TSSHBeforeOpenCommandEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHBeforeOpenCommandEvent)(void * _ObjectData, TObjectHandle Sender, TElSSHTunnelConnectionHandle Connection, const char * pcCommand, int32_t szCommand, int8_t &Accept);

    TSSHBeforeOpenCommandEvent|callable|NULL get_OnBeforeOpenCommand()
    void set_OnBeforeOpenCommand(TSSHBeforeOpenCommandEvent|callable|NULL $Value)
    callable TSSHBeforeOpenCommandEvent(TObject $Sender, TElSSHTunnelConnection $Connection, string $Command, bool &$Accept)

    TSSHBeforeOpenCommandEvent getOnBeforeOpenCommand();
    void setOnBeforeOpenCommand(TSSHBeforeOpenCommandEvent Value);
    TSSHBeforeOpenCommandEvent.Callback OnBeforeOpenCommand = new TSSHBeforeOpenCommandEvent.Callback() {
        public void TSSHBeforeOpenCommandEventCallback(TObject Sender, TElSSHTunnelConnection Connection, String Command, TSBBoolean Accept) {


  • Connection - logical connection
  • Command - command to be executed
  • Accept - set this parameter to True if you agree to execute the Command
  • pcCommand - command to be executed
  • szCommand - the length of pcCommand.


    If you agree to execute the Command, set Access parameter to True.
     Note, session for Connection has been established before command opening. This event is preceded by OnBeforeOpenSession and OnOpenSession ones.

Discuss this help topic in SecureBlackbox Forum