Discuss this help topic in SecureBlackbox Forum

TElSSHServer.OnOpenClientForwarding

TElSSHServer     See also     


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


This event is fired when logical connection of a "client forwarding" type has been established.

Declaration

[C#]
    event TSSHOpenClientForwardingEvent OnOpenClientForwarding;
    delegate void TSSHOpenClientForwardingEvent(Object Sender, TElSSHTunnelConnection Connection, string DestHost, int DestPort, string SrcHost, int SrcPort);

[VB.NET]
    Event OnOpenClientForwarding As TSSHOpenClientForwardingEvent
    Delegate Sub TSSHOpenClientForwardingEvent(ByVal Sender As Object, ByVal Connection As TElSSHTunnelConnection, ByVal DestHost As String, ByVal DestPort As Integer, ByVal SrcHost As String, ByVal SrcPort As Integer)

[Pascal]
    property OnOpenClientForwarding: TSSHOpenClientForwardingEvent;
    TSSHOpenClientForwardingEvent = procedure(Sender: TObject; Connection: TElSSHTunnelConnection; const DestHost: string; DestPort: integer; const SrcHost : string; SrcPort: integer) of object;

[C++]
    void get_OnOpenClientForwarding(TSSHOpenClientForwardingEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnOpenClientForwarding(TSSHOpenClientForwardingEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSSHOpenClientForwardingEvent)(void * _ObjectData, TObjectHandle Sender, TElSSHTunnelConnectionHandle Connection, const char * pcDestHost, int32_t szDestHost, int32_t DestPort, const char * pcSrcHost, int32_t szSrcHost, int32_t SrcPort);

[PHP]
    TSSHOpenClientForwardingEvent|callable|NULL get_OnOpenClientForwarding()
    void set_OnOpenClientForwarding(TSSHOpenClientForwardingEvent|callable|NULL $Value)
    callable TSSHOpenClientForwardingEvent(TObject $Sender, TElSSHTunnelConnection $Connection, string $DestHost, integer $DestPort, string $SrcHost, integer $SrcPort)

[Java]
    TSSHOpenClientForwardingEvent getOnOpenClientForwarding();
    void setOnOpenClientForwarding(TSSHOpenClientForwardingEvent Value);
    TSSHOpenClientForwardingEvent.Callback OnOpenClientForwarding = new TSSHOpenClientForwardingEvent.Callback() {
        public void TSSHOpenClientForwardingEventCallback(TObject Sender, TElSSHTunnelConnection Connection, String DestHost, int DestPort, String SrcHost, int SrcPort) {
            //...
        }
    }

Parameters

  • Connection - newly created TElSSHTunnelConnection
  • DestHost - the host to which server has to connect
  • DestPort - port on the DestHost
  • SrcHost - host that is connected to the client
  • SrcPort - port on the SrcHost
  • pcDestHost - the host to which server has to connect
  • szDestHost - the length of pcDestHost.
  • pcSrcHost - host that is connected to the client
  • szSrcHost - the length of pcSrcHost.

Description

    This event is preceded by OnBeforeOpenClientForwarding one. The server has to establish connection with DestHost:DestPort and perform data exchange between the client and the specified server (using Connection methods).
    SSHBlackbox contains classes which provide such data exchange (TElTCPForwardingSSHSubsystemHandler).

See also:     OnBeforeOpenClientForwarding     OnOpenSubsystem     OnOpenCommand     OnOpenShell     OnOpenServerForwarding     OnOpenX11Forwarding    

Discuss this help topic in SecureBlackbox Forum