Discuss this help topic in SecureBlackbox Forum


TElSSHLocalPortForwarding     See also     

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

This event is fired when new incoming connection is accepted.


    event TSBSSHSocksAuthMethodChooseEvent OnConnectionSocksAuthMethodChoose;
    delegate void TSBSSHSocksAuthMethodChooseEvent(Object Sender, TElSSHForwardedConnection Conn, int32[] AuthMethods, ref TElSocksAuthentication AuthMethod, ref bool Cancel);

    Event OnConnectionSocksAuthMethodChoose As TSBSSHSocksAuthMethodChooseEvent
    Delegate Sub TSBSSHSocksAuthMethodChooseEvent(ByVal Sender As Object, ByVal Conn As TElSSHForwardedConnection, ByVal AuthMethods As Integer(), ByRef AuthMethod As TElSocksAuthentication, ByRef Cancel As Boolean)

    property OnConnectionSocksAuthMethodChoose : TSBSSHSocksAuthMethodChooseEvent;
    TSBSSHSocksAuthMethodChooseEvent = procedure(Sender: TObject; Conn : TElSSHForwardedConnection; AuthMethods : array of TElSocksAuthentication; var AuthMethod : TElSocksAuthentication; var Cancel : Boolean) of object;

    void get_OnConnectionSocksAuthMethodChoose(TSBSSHSocksAuthMethodChooseEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnConnectionSocksAuthMethodChoose(TSBSSHSocksAuthMethodChooseEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSSHSocksAuthMethodChooseEvent)(void * _ObjectData, TObjectHandle Sender, TElSSHForwardedConnectionHandle Conn, const TElSocksAuthenticationRaw pAuthMethods[], int32_t szAuthMethods, TElSocksAuthenticationRaw &AuthMethod, int8_t &Cancel);

    TSBSSHSocksAuthMethodChooseEvent|callable|NULL get_OnConnectionSocksAuthMethodChoose()
    void set_OnConnectionSocksAuthMethodChoose(TSBSSHSocksAuthMethodChooseEvent|callable|NULL $Value)
    callable TSBSSHSocksAuthMethodChooseEvent(TObject $Sender, TElSSHForwardedConnection $Conn, array of integer $AuthMethods, integer &$AuthMethod, bool &$Cancel)


  • Conn - forwarded connection
  • AuthMethods - array of authentication methods supported
  • AuthMethod - use this parameter to specify the desired authentication method
  • Cancel - set this parameter to True to cancel authentication
  • pAuthMethods -
  • szAuthMethods - the length of pcAuthMethods.



    This event is fired by TElSSHLocalPortForwarding in order to choose authentication method when new incoming SOCKS connection is accepted.

Discuss this help topic in SecureBlackbox Forum