Discuss this help topic in SecureBlackbox Forum


TElSSHServer     See also     

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

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


    event TSSHBeforeOpenSessionEvent OnBeforeOpenSession;
    TSSHBeforeOpenSessionEvent(object Sender, ref bool Accept)

    Event OnBeforeOpenSession As TSSHBeforeOpenSessionEvent
    Delegate Sub TSSHBeforeOpenSessionEvent(ByVal Sender As Object, ByRef Accept As Boolean)

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

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

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


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


    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