Discuss this help topic in SecureBlackbox Forum

TElSSHServer.OnBeforeOpenShell

TElSSHServer     See also     


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


This event is fired when the client requests shell access.

Declaration

[C#]
    event TSSHBeforeOpenShellEvent OnBeforeOpenShell;
    delegate void TSSHBeforeOpenShellEvent(Object Sender, TElSSHTunnelConnection Connection, ref bool Accept);

[VB.NET]
    Event OnBeforeOpenShell As TSSHBeforeOpenShellEvent
    Delegate Sub TSSHBeforeOpenShellEvent(ByVal Sender As Object, ByVal Connection As TElSSHTunnelConnection, ByRef Accept As Boolean)

[Pascal]
    property OnBeforeOpenShell : TSSHBeforeOpenShellEvent;
    TSSHBeforeOpenShellEvent = procedure(Sender: TObject; Connection: TElSSHTunnelConnection; var Accept : boolean) of object;

[C++]
    void get_OnBeforeOpenShell(TSSHBeforeOpenShellEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnBeforeOpenShell(TSSHBeforeOpenShellEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHBeforeOpenShellEvent)(void * _ObjectData, TObjectHandle Sender, TElSSHTunnelConnectionHandle Connection, int8_t &Accept);

[PHP]
    TSSHBeforeOpenShellEvent|callable|NULL get_OnBeforeOpenShell()
    void set_OnBeforeOpenShell(TSSHBeforeOpenShellEvent|callable|NULL $Value)
    callable TSSHBeforeOpenShellEvent(TObject $Sender, TElSSHTunnelConnection $Connection, bool &$Accept)

[Java]
    TSSHBeforeOpenShellEvent getOnBeforeOpenShell();
    void setOnBeforeOpenShell(TSSHBeforeOpenShellEvent Value);
    TSSHBeforeOpenShellEvent.Callback OnBeforeOpenShell = new TSSHBeforeOpenShellEvent.Callback() {
        public void TSSHBeforeOpenShellEventCallback(TObject Sender, TElSSHTunnelConnection Connection, TSBBoolean Accept) {
            //...
        }
    }

Parameters

  • Connection - logical connection
  • Accept - set this parameter to True if you agree to provide client with a shell.

Description

    If you agree to provide client with a shell set Access parameter to True.
     Note, session for Connection has been established before shell opening. This event is preceded by OnBeforeOpenSession and OnOpenSession ones.

Discuss this help topic in SecureBlackbox Forum