Discuss this help topic in SecureBlackbox Forum


TElSSHServer     See also     

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

This event is fired when the client requested a custom subsystem.


    event TSSHBeforeOpenSubsystemEvent OnBeforeOpenSubsystem;
    delegate void TSSHBeforeOpenSubsystemEvent(Object Sender, string Subsystem, TElSSHTunnelConnection Connection, ref bool Accept);

    Event OnBeforeOpenSubsystem As TSSHBeforeOpenSubsystemEvent
    Delegate Sub TSSHBeforeOpenSubsystemEvent(ByVal Sender As Object, ByVal Subsystem As String, ByVal Connection As TElSSHTunnelConnection, ByRef Accept As Boolean)

    property OnBeforeOpenSubsystem: TSSHBeforeOpenSubsystemEvent;
    TSSHBeforeOpenSubsystemEvent = procedure(Sender: TObject; const Subsystem: string; Connection: TElSSHTunnelConnection; var Accept : boolean) of object;

    void get_OnBeforeOpenSubsystem(TSSHBeforeOpenSubsystemEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnBeforeOpenSubsystem(TSSHBeforeOpenSubsystemEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHBeforeOpenSubsystemEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcSubsystem, int32_t szSubsystem, TElSSHTunnelConnectionHandle Connection, int8_t &Accept);

    TSSHBeforeOpenSubsystemEvent|callable|NULL get_OnBeforeOpenSubsystem()
    void set_OnBeforeOpenSubsystem(TSSHBeforeOpenSubsystemEvent|callable|NULL $Value)
    callable TSSHBeforeOpenSubsystemEvent(TObject $Sender, string $Subsystem, TElSSHTunnelConnection $Connection, bool &$Accept)

    TSSHBeforeOpenSubsystemEvent getOnBeforeOpenSubsystem();
    void setOnBeforeOpenSubsystem(TSSHBeforeOpenSubsystemEvent Value);
    TSSHBeforeOpenSubsystemEvent.Callback OnBeforeOpenSubsystem = new TSSHBeforeOpenSubsystemEvent.Callback() {
        public void TSSHBeforeOpenSubsystemEventCallback(TObject Sender, String Subsystem, TElSSHTunnelConnection Connection, TSBBoolean Accept) {


  • Subsystem - subsystem name (for example 'sftp')
  • Connection - logical connection
  • Accept - set this parameter to True if you agree to execute the Subsystem
  • pcSubsystem - subsystem name (for example 'sftp')
  • szSubsystem - the length of pcSubsystem.


    If you agree to execute the Subsystem set Access parameter to True.
     Note, session for Connection has been established before subsystem opening. This event is preceded by OnBeforeOpenSession and OnOpenSession ones.

Discuss this help topic in SecureBlackbox Forum