Discuss this help topic in SecureBlackbox Forum


TElSSHServer     See also     

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

This event requests X11-forwarding permission.


    event TSSHX11ForwardingRequestEvent OnX11ForwardingRequest;
    delegate void TSSHX11ForwardingRequestEvent(object Sender, bool SingleConnection, string AuthProtocol, string AuthCookie, int ScreenNumber, ref bool Accept)

    Event OnX11ForwardingRequest As TSSHX11ForwardingRequestEvent
    Delegate Sub TSSHX11ForwardingRequestEvent(ByVal Sender As Object, ByVal SingleConnection As Boolean, ByVal AuthProtocol As String, ByVal AuthCookie As String, ByVal ScreenNumber As Integer, ByRef Accept As Boolean)

    property OnX11ForwardingRequest : TSSHX11ForwardingRequestEvent;
    TSSHX11ForwardingRequestEvent = procedure(Sender: TObject; SingleConnection: boolean; const AuthProtocol: string; const AuthCookie: string; ScreenNumber: integer; var Accept: boolean) of object;

    void get_OnX11ForwardingRequest(TSSHX11ForwardingRequestEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnX11ForwardingRequest(TSSHX11ForwardingRequestEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHX11ForwardingRequestEvent)(void * _ObjectData, TObjectHandle Sender, int8_t SingleConnection, const char * pcAuthProtocol, int32_t szAuthProtocol, const char * pcAuthCookie, int32_t szAuthCookie, int32_t ScreenNumber, int8_t &Accept);

    TSSHX11ForwardingRequestEvent|callable|NULL get_OnX11ForwardingRequest()
    void set_OnX11ForwardingRequest(TSSHX11ForwardingRequestEvent|callable|NULL $Value)
    callable TSSHX11ForwardingRequestEvent(TObject $Sender, bool $SingleConnection, string $AuthProtocol, string $AuthCookie, integer $ScreenNumber, bool &$Accept)


  • SingleConnection - specifies than only one x11-connection can be forwarded at the same time
  • AuthProtocol - x11-authentication protocol
  • AuthCookie - authentication cookie
  • ScreenNumber - number of the screen
  • Accept - specifies if forwarding will be allowed
  • pcAuthProtocol - x11-authentication protocol
  • szAuthProtocol - the length of pcAuthProtocol.
  • pcAuthCookie - authentication cookie
  • szAuthCookie - the length of pcAuthCookie.


    Informs the server about X11 settings and requests permission for forwarding. No X11-forwarding can be requested (OnBeforeOpenX11Forwarding and OnOpenX11Forwarding events can not be fired) until permission is received.

See also:     OnBeforeOpenX11Forwarding     OnOpenX11Forwarding    

Discuss this help topic in SecureBlackbox Forum