Discuss this help topic in SecureBlackbox Forum


TElSSHServer     See also     

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

This event is fired when the client requests shell access.


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

    Event OnBeforeOpenShell As TSSHBeforeOpenShellEvent
    Delegate Sub TSSHBeforeOpenShellEvent(ByVal Sender As Object, ByVal Connection As TElSSHTunnelConnection, ByRef Accept As Boolean)

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

    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);

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


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


    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