Discuss this help topic in SecureBlackbox Forum


TElSSHServer     See also     

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

This event is fired when logical connection of a "command" type has been established.


    event TSSHOpenCommandEvent OnOpenCommand;
    delegate void TSSHOpenCommandEvent(Object Sender, TElSSHTunnelConnection Connection, string Command);

    Event OnOpenCommand As TSSHOpenCommandEvent
    Delegate Sub TSSHOpenCommandEvent(ByVal Sender As Object, ByVal Connection As TElSSHTunnelConnection, ByVal Command As String)

    property OnOpenCommand : TSSHOpenCommandEvent;
    TSSHOpenCommandEvent = procedure(Sender: TObject; Connection: TElSSHTunnelConnection; const Command: string) of object;

    void get_OnOpenCommand(TSSHOpenCommandEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnOpenCommand(TSSHOpenCommandEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHOpenCommandEvent)(void * _ObjectData, TObjectHandle Sender, TElSSHTunnelConnectionHandle Connection, const char * pcCommand, int32_t szCommand);

    TSSHOpenCommandEvent|callable|NULL get_OnOpenCommand()
    void set_OnOpenCommand(TSSHOpenCommandEvent|callable|NULL $Value)
    callable TSSHOpenCommandEvent(TObject $Sender, TElSSHTunnelConnection $Connection, string $Command)


  • Connection - newly created TElSSHTunnelConnection
  • Command - command to be executed
  • pcCommand - command to be executed
  • szCommand - the length of pcCommand.


    This event passes the newly created TElSSHTunnelConnection object to the user. Use this object to read input data for the Command and write Command output to it. This tunnel will be closed as soon as command execution is finished. This event is preceded by OnBeforeOpenCommand one.

See also:     OnBeforeOpenCommand     OnOpenClientForwarding     OnOpenSubsystem     OnOpenX11Forwarding     OnOpenShell    

Discuss this help topic in SecureBlackbox Forum