Discuss this help topic in SecureBlackbox Forum

TElSSHServer.OnBeforeOpenSession

TElSSHServer     See also     


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


This event is fired when the client wants to establish session connection (shell, command or subsystem).

Declaration

[C#]
    event TSSHBeforeOpenSessionEvent OnBeforeOpenSession;
    delegate void TSSHBeforeOpenSessionEvent(Object Sender, ref bool Accept);

[VB.NET]
    Event OnBeforeOpenSession As TSSHBeforeOpenSessionEvent
    Delegate Sub TSSHBeforeOpenSessionEvent(ByVal Sender As Object, ByRef Accept As Boolean)

[Pascal]
    property OnBeforeOpenSession : TSSHBeforeOpenSessionEvent;
    TSSHBeforeOpenSessionEvent = procedure(Sender: TObject; var Accept: boolean) of object;

[C++]
    void get_OnBeforeOpenSession(TSSHBeforeOpenSessionEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnBeforeOpenSession(TSSHBeforeOpenSessionEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHBeforeOpenSessionEvent)(void * _ObjectData, TObjectHandle Sender, int8_t &Accept);

[PHP]
    TSSHBeforeOpenSessionEvent|callable|NULL get_OnBeforeOpenSession()
    void set_OnBeforeOpenSession(TSSHBeforeOpenSessionEvent|callable|NULL $Value)
    callable TSSHBeforeOpenSessionEvent(TObject $Sender, bool &$Accept)

[Java]
    TSSHBeforeOpenSessionEvent getOnBeforeOpenSession();
    void setOnBeforeOpenSession(TSSHBeforeOpenSessionEvent Value);
    TSSHBeforeOpenSessionEvent.Callback OnBeforeOpenSession = new TSSHBeforeOpenSessionEvent.Callback() {
        public void TSSHBeforeOpenSessionEventCallback(TObject Sender, TSBBoolean Accept) {
            //...
        }
    }

Parameters

  • Accept - set this parameter to True to allow session opening

Description

    Before establishing any logical connection (shell, command, subsystem) the client must request a session. When the client requests a session, this event is fired in order to notify you about the request and give you possibility to deny the session providing to the client.

See also:     OnOpenSession     OnBeforeOpenCommand     OnBeforeOpenShell     OnBeforeOpenSubsystem    

Discuss this help topic in SecureBlackbox Forum