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 requests X11-forwarding.


    event TSSHBeforeOpenX11ForwardingEvent OnBeforeOpenX11Forwarding;
    delegate void TSSHBeforeOpenX11ForwardingEvent(Object Sender, string OrigIP, int OrigPort, ref bool Accept);

    Event OnBeforeOpenX11Forwarding As TSSHBeforeOpenX11ForwardingEvent
    Delegate Sub TSSHBeforeOpenX11ForwardingEvent(ByVal Sender As Object, ByVal OrigIP As String, ByVal OrigPort As Integer, ByRef Accept As Boolean)

    property OnBeforeOpenX11Forwarding: TSSHBeforeOpenX11ForwardingEvent;
    TSSHBeforeOpenX11ForwardingEvent = procedure(Sender: TObject; const OrigIP : string; OrigPort: integer; var Accept : boolean) of object;

    void get_OnBeforeOpenX11Forwarding(TSSHBeforeOpenX11ForwardingEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnBeforeOpenX11Forwarding(TSSHBeforeOpenX11ForwardingEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHBeforeOpenX11ForwardingEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcOrigIP, int32_t szOrigIP, int32_t OrigPort, int8_t &Accept);

    TSSHBeforeOpenX11ForwardingEvent|callable|NULL get_OnBeforeOpenX11Forwarding()
    void set_OnBeforeOpenX11Forwarding(TSSHBeforeOpenX11ForwardingEvent|callable|NULL $Value)
    callable TSSHBeforeOpenX11ForwardingEvent(TObject $Sender, string $OrigIP, integer $OrigPort, bool &$Accept)

    TSSHBeforeOpenX11ForwardingEvent getOnBeforeOpenX11Forwarding();
    void setOnBeforeOpenX11Forwarding(TSSHBeforeOpenX11ForwardingEvent Value);
    TSSHBeforeOpenX11ForwardingEvent.Callback OnBeforeOpenX11Forwarding = new TSSHBeforeOpenX11ForwardingEvent.Callback() {
        public void TSSHBeforeOpenX11ForwardingEventCallback(TObject Sender, String OrigIP, int OrigPort, TSBBoolean Accept) {


  • OrigIP - address of the host connected to the client
  • OrigPort - port on the OriginIP
  • Accept - set this parameter to True if you want to allow forwarding
  • pcOrigIP - address of the host connected to the client
  • szOrigIP - the length of pcOrigIP.


    If you agree to provide forwarding set Access parameter to True.

Discuss this help topic in SecureBlackbox Forum