Discuss this help topic in SecureBlackbox Forum

TElSSHServer.OnOpenCommand

TElSSHServer     See also     


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


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

Declaration

[C#]
    event TSSHOpenCommandEvent OnOpenCommand;
    delegate void TSSHOpenCommandEvent(Object Sender, TElSSHTunnelConnection Connection, string Command);

[VB.NET]
    Event OnOpenCommand As TSSHOpenCommandEvent
    Delegate Sub TSSHOpenCommandEvent(ByVal Sender As Object, ByVal Connection As TElSSHTunnelConnection, ByVal Command As String)

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

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

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

[Java]
    TSSHOpenCommandEvent getOnOpenCommand();
    void setOnOpenCommand(TSSHOpenCommandEvent Value);
    TSSHOpenCommandEvent.Callback OnOpenCommand = new TSSHOpenCommandEvent.Callback() {
        public void TSSHOpenCommandEventCallback(TObject Sender, TElSSHTunnelConnection Connection, String Command) {
            //...
        }
    }

Parameters

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

Description

    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