Discuss this help topic in SecureBlackbox Forum


TElSSHLocalPortForwarding     See also     

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

This event is fired before SOCKS authentication.


    event TSBSSHSocksAuthPasswordEvent OnConnectionSocksAuthPassword;
    delegate void TSBSSHSocksAuthPasswordEvent(Object Sender, TElSSHForwardedConnection Conn, string Username, string Password, ref bool Accept);

    Event OnConnectionSocksAuthPassword As TSBSSHSocksAuthPasswordEvent
    Delegate Sub TSBSSHSocksAuthPasswordEvent(ByVal Sender As Object, ByVal Conn As TElSSHForwardedConnection, ByVal Username As String, ByVal Password As String, ByRef Accept As Boolean)

    property OnConnectionSocksAuthPassword : TSBSSHSocksAuthPasswordEvent;
    TSBSSHSocksAuthPasswordEvent = procedure(Sender: TObject; Conn : TElSSHForwardedConnection; const Username : string; const Password : string; var Accept : boolean) of object;

    void get_OnConnectionSocksAuthPassword(TSBSSHSocksAuthPasswordEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnConnectionSocksAuthPassword(TSBSSHSocksAuthPasswordEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSSHSocksAuthPasswordEvent)(void * _ObjectData, TObjectHandle Sender, TElSSHForwardedConnectionHandle Conn, const char * pcUsername, int32_t szUsername, const char * pcPassword, int32_t szPassword, int8_t &Accept);

    TSBSSHSocksAuthPasswordEvent|callable|NULL get_OnConnectionSocksAuthPassword()
    void set_OnConnectionSocksAuthPassword(TSBSSHSocksAuthPasswordEvent|callable|NULL $Value)
    callable TSBSSHSocksAuthPasswordEvent(TObject $Sender, TElSSHForwardedConnection $Conn, string $Username, string $Password, bool &$Accept)

    TSBSSHSocksAuthPasswordEvent getOnConnectionSocksAuthPassword();
    void setOnConnectionSocksAuthPassword(TSBSSHSocksAuthPasswordEvent Value);
    TSBSSHSocksAuthPasswordEvent.Callback OnConnectionSocksAuthPassword = new TSBSSHSocksAuthPasswordEvent.Callback() {
        public void TSBSSHSocksAuthPasswordEventCallback(TObject Sender, TElSSHForwardedConnection Conn, String Username, String Password, TSBBoolean Accept) {


  • Conn - forwarded connection
  • Username - specifies username
  • Password - specifies password
  • Accept - set this parameter to True if username and password are correct
  • pcUsername - specifies username
  • szUsername - the length of pcUsername.
  • pcPassword - specifies password
  • szPassword - the length of pcPassword.


    If dynamic forwarding is used this event is fired when username and password are provided for SOCKS authentication. User can accept or decline the connection.

Discuss this help topic in SecureBlackbox Forum