Discuss this help topic in SecureBlackbox Forum

TElSSHServer.OnOpenX11Forwarding

TElSSHServer     See also     


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


This event is fired when logical connection of type "x11-forwarding" has been established.

Declaration

[C#/Java]
    event TSSHOpenX11ForwardingEvent OnOpenX11Forwarding;
    delegate void TSSHOpenX11ForwardingEvent(Object Sender, TElSSHTunnelConnection Connection, string OrigIP, int OrigPort);

[VB.NET]
    Event OnOpenX11Forwarding As TSSHOpenX11ForwardingEvent
    Delegate Sub TSSHOpenX11ForwardingEvent(ByVal Sender As Object, ByVal Connection As TElSSHTunnelConnection, ByVal OrigIP As String, ByVal OrigPort As Integer)

[Pascal]
    property OnOpenX11Forwarding: TSSHOpenX11ForwardingEvent;
    TSSHOpenX11ForwardingEvent = procedure(Sender: TObject; Connection : TElSSHTunnelConnection; const OrigIP : string; OrigPort: integer) of object;

[C++]
    void get_OnOpenX11Forwarding(TSSHOpenX11ForwardingEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnOpenX11Forwarding(TSSHOpenX11ForwardingEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHOpenX11ForwardingEvent)(void * _ObjectData, TObjectHandle Sender, TElSSHTunnelConnectionHandle Connection, const char * pcOrigIP, int32_t szOrigIP, int32_t OrigPort);

[PHP]
    TSSHOpenX11ForwardingEvent|callable|NULL get_OnOpenX11Forwarding()
    void set_OnOpenX11Forwarding(TSSHOpenX11ForwardingEvent|callable|NULL $Value)
    callable TSSHOpenX11ForwardingEvent(TObject $Sender, TElSSHTunnelConnection $Connection, string $OrigIP, integer $OrigPort)

Parameters

  • Connection - newly created TElSSHTunnelConnection
  • OrigIP - address of the host connected to the client
  • OrigPort - port on the OriginIP
  • pcOrigIP - address of the host connected to the client
  • szOrigIP - the length of pcOrigIP.

Description

    The server must pass the data received from the Connection to the X11-server and back. This event is preceded by OnBeforeOpenX11Forwarding one.

See also:     OnBeforeOpenX11Forwarding     OnX11ForwardingRequest     OnOpenCommand     OnOpenClientForwarding     OnOpenSubsystem     OnOpenShell    

Discuss this help topic in SecureBlackbox Forum