Discuss this help topic in SecureBlackbox Forum


TElSSHServer     See also     

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

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


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

    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)

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

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

    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)


  • 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.


    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