Discuss this help topic in SecureBlackbox Forum


TElSSHLocalPortForwarding     See also     

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

This event is fired when forwarded connection is requested.


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

    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)

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

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

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


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


    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