Discuss this help topic in SecureBlackbox Forum


TElSSHServer     See also     

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

This event is fired when shell connection has been established.


    event TSSHOpenShellEvent OnOpenShell;
    delegate void TSSHOpenShellEvent(Object Sender, TElSSHTunnelConnection Connection);

    Event OnOpenShell As TSSHOpenShellEvent
    Delegate Sub TSSHOpenShellEvent(ByVal Sender As Object, ByVal Connection As TElSSHTunnelConnection)

    property OnOpenShell : TSSHOpenShellEvent;
    TSSHOpenShellEvent = procedure(Sender: TObject; Connection: TElSSHTunnelConnection) of object;

    void get_OnOpenShell(TSSHOpenShellEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnOpenShell(TSSHOpenShellEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHOpenShellEvent)(void * _ObjectData, TObjectHandle Sender, TElSSHTunnelConnectionHandle Connection);

    TSSHOpenShellEvent|callable|NULL get_OnOpenShell()
    void set_OnOpenShell(TSSHOpenShellEvent|callable|NULL $Value)
    callable TSSHOpenShellEvent(TObject $Sender, TElSSHTunnelConnection $Connection)

    TSSHOpenShellEvent getOnOpenShell();
    void setOnOpenShell(TSSHOpenShellEvent Value);
    TSSHOpenShellEvent.Callback OnOpenShell = new TSSHOpenShellEvent.Callback() {
        public void TSSHOpenShellEventCallback(TObject Sender, TElSSHTunnelConnection Connection) {



    This event is always preceded by OnBeforeOpenShell (which parameter Accept is True). The OnOpenShell event passes the newly created TElSSHTunnelConnection object to the application. After receiving Connection object you can use its SendData, SendText methods and OnData event for data transfer from the shell to the client and back.
    SSHBlackbox contains classes which provide such data transfer (TElShellSSHSubsystemHandler).

Discuss this help topic in SecureBlackbox Forum