Discuss this help topic in SecureBlackbox Forum

TElSSHServer.OnOpenSubsystem

TElSSHServer     See also     


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


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

Declaration

[C#]
    event TSSHOpenSubsystemEvent OnOpenSubsystem;
    delegate void TSSHOpenSubsystemEvent(Object Sender, TElSSHTunnelConnection Connection, string Subsystem);

[VB.NET]
    Event OnOpenSubsystem As TSSHOpenSubsystemEvent
    Delegate Sub TSSHOpenSubsystemEvent(ByVal Sender As Object, ByVal Connection As TElSSHTunnelConnection, ByVal Subsystem As String)

[Pascal]
    property OnOpenSubsystem : TSSHOpenSubsystemEvent;
    TSSHOpenSubsystemEvent = procedure(Sender: TObject; Connection: TElSSHTunnelConnection; const Subsystem: string) of object;

[C++]
    void get_OnOpenSubsystem(TSSHOpenSubsystemEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnOpenSubsystem(TSSHOpenSubsystemEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHOpenSubsystemEvent)(void * _ObjectData, TObjectHandle Sender, TElSSHTunnelConnectionHandle Connection, const char * pcSubsystem, int32_t szSubsystem);

[PHP]
    TSSHOpenSubsystemEvent|callable|NULL get_OnOpenSubsystem()
    void set_OnOpenSubsystem(TSSHOpenSubsystemEvent|callable|NULL $Value)
    callable TSSHOpenSubsystemEvent(TObject $Sender, TElSSHTunnelConnection $Connection, string $Subsystem)

[Java]
    TSSHOpenSubsystemEvent getOnOpenSubsystem();
    void setOnOpenSubsystem(TSSHOpenSubsystemEvent Value);
    TSSHOpenSubsystemEvent.Callback OnOpenSubsystem = new TSSHOpenSubsystemEvent.Callback() {
        public void TSSHOpenSubsystemEventCallback(TObject Sender, TElSSHTunnelConnection Connection, String Subsystem) {
            //...
        }
    }

Parameters

  • Connection - newly created TElSSHTunnelConnection
  • Subsystem - subsystem name
  • pcSubsystem - subsystem name
  • szSubsystem - the length of pcSubsystem.

Description

    This event passes the newly created TElSSHTunnelConnection object to the application. After receiving Connection object you can use its SendData, SendText methods and OnData event to read input data for the Subsystem and write Subsystem output to this connection. This event is preceded by OnBeforeOpenSubsystem one.

See also:     OnBeforeOpenSubsystem     OnOpenClientForwarding     OnOpenCommand     OnOpenShell     OnOpenX11Forwarding    

Discuss this help topic in SecureBlackbox Forum