Discuss this help topic in SecureBlackbox Forum

TElSSHLocalPortForwarding.OnConnectionSocksConnect

TElSSHLocalPortForwarding     See also     


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


This event is fired when forwarded connection is requested.

Declaration

[C#]
    event TSBSSHSocksConnectEvent OnConnectionSocksConnect;
    delegate void TSBSSHSocksConnectEvent(Object Sender, TElSSHForwardedConnection Conn, string DestHost, int DestPort, ref bool Allow);

[VB.NET]
    Event OnConnectionSocksConnect As TSBSSHSocksConnectEvent
    Delegate Sub TSBSSHSocksConnectEvent(ByVal Sender As Object, ByVal Conn As TElSSHForwardedConnection, ByVal DestHost As String, ByVal DestPort As Integer, ByRef Allow As Boolean)

[Pascal]
    property OnConnectionSocksConnect : TSBSSHSocksConnectEvent;
    TSBSSHSocksConnectEvent = procedure(Sender: TObject; Conn : TElSSHForwardedConnection; const DestHost : string; const DestPort : integer; var Allow : boolean) of object;

[C++]
    void get_OnConnectionSocksConnect(TSBSSHSocksConnectEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnConnectionSocksConnect(TSBSSHSocksConnectEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSSHSocksConnectEvent)(void * _ObjectData, TObjectHandle Sender, TElSSHForwardedConnectionHandle Conn, const char * pcDestHost, int32_t szDestHost, int32_t DestPort, int8_t &Allow);

[PHP]
    TSBSSHSocksConnectEvent|callable|NULL get_OnConnectionSocksConnect()
    void set_OnConnectionSocksConnect(TSBSSHSocksConnectEvent|callable|NULL $Value)
    callable TSBSSHSocksConnectEvent(TObject $Sender, TElSSHForwardedConnection $Conn, string $DestHost, integer $DestPort, bool &$Allow)

[Java]
    TSBSSHSocksConnectEvent getOnConnectionSocksConnect();
    void setOnConnectionSocksConnect(TSBSSHSocksConnectEvent Value);
    TSBSSHSocksConnectEvent.Callback OnConnectionSocksConnect = new TSBSSHSocksConnectEvent.Callback() {
        public void TSBSSHSocksConnectEventCallback(TObject Sender, TElSSHForwardedConnection Conn, String DestHost, int DestPort, TSBBoolean Allow) {
            //...
        }
    }

Parameters

  • Conn - forwarded connection
  • DestHost - destination host name
  • DestPort - destination port number
  • Allow - set this parameter to True to allow connection
  • pcDestHost - destination host name
  • szDestHost - the length of pcDestHost.

Description

    If dynamic forwarding is used this event is fired in order to let user allow or disallow forwarded connection to DestHost.

Discuss this help topic in SecureBlackbox Forum