Discuss this help topic in SecureBlackbox Forum


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.


    event TSSHOpenSubsystemEvent OnOpenSubsystem;
    delegate void TSSHOpenSubsystemEvent(Object Sender, TElSSHTunnelConnection Connection, string Subsystem);

    Event OnOpenSubsystem As TSSHOpenSubsystemEvent
    Delegate Sub TSSHOpenSubsystemEvent(ByVal Sender As Object, ByVal Connection As TElSSHTunnelConnection, ByVal Subsystem As String)

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

    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);

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

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


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


    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