Discuss this help topic in SecureBlackbox Forum

TElSSHServer.OnOpenShell

TElSSHServer     See also     


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


This event is fired when shell connection has been established.

Declaration

[C#/Java]
    event TSSHOpenShellEvent OnOpenShell;
    delegate void TSSHOpenShellEvent(Object Sender, TElSSHTunnelConnection Connection);

[VB.NET]
    Event OnOpenShell As TSSHOpenShellEvent
    Delegate Sub TSSHOpenShellEvent(ByVal Sender As Object, ByVal Connection As TElSSHTunnelConnection)

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

[C++]
    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);

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

Parameters

Description

    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