Discuss this help topic in SecureBlackbox Forum

TElFTPSServer.OnUsernameReceived

TElFTPSServer     See also     


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


This event is fired when a command has been processed by the server.

Declaration

[C#]
    event TSBFTPSServerUsernameReceivedEvent OnUsernameReceived;
    delegate void TSBFTPSServerUsernameReceivedEvent(Object Sender, string Login, ref bool Allow, ref bool NeedsPassword);

[VB.NET]
    Event OnUsernameReceived As TSBFTPSServerUsernameReceivedEvent
    Delegate Sub TSBFTPSServerUsernameReceivedEvent(ByVal Sender As Object, ByVal Login As String, ByRef Allow As Boolean, ByRef NeedsPassword As Boolean)

[Pascal]
    property OnUsernameReceived : TSBFTPSServerUsernameReceivedEvent;
    TSBFTPSServerUsernameReceivedEvent = procedure (Sender: TObject; const Login : string; var Allow, NeedsPassword : boolean) of object;

[C++]
    void get_OnUsernameReceived(TSBFTPSServerUsernameReceivedEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnUsernameReceived(TSBFTPSServerUsernameReceivedEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBFTPSServerUsernameReceivedEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcLogin, int32_t szLogin, int8_t &Allow, int8_t &NeedsPassword);

[PHP]
    TSBFTPSServerUsernameReceivedEvent|callable|NULL get_OnUsernameReceived()
    void set_OnUsernameReceived(TSBFTPSServerUsernameReceivedEvent|callable|NULL $Value)
    callable TSBFTPSServerUsernameReceivedEvent(TObject $Sender, string $Login, bool &$Allow, bool &$NeedsPassword)

[Java]
    TSBFTPSServerUsernameReceivedEvent getOnUsernameReceived();
    void setOnUsernameReceived(TSBFTPSServerUsernameReceivedEvent Value);
    TSBFTPSServerUsernameReceivedEvent.Callback OnUsernameReceived = new TSBFTPSServerUsernameReceivedEvent.Callback() {
        public void TSBFTPSServerUsernameReceivedEventCallback(TObject Sender, String Login, TSBBoolean Allow, TSBBoolean NeedsPassword) {
            //...
        }
    }

Parameters

  • Login - contains the login sent by the client.
  • Allow - specifies whether to allow authentication.
  • NeedsPassword - set this parameter to True if password is required for the specified username.
  • pcLogin - contains the login sent by the client.
  • szLogin - the length of pcLogin.

Description

    This event is fired by TElFTPSServer when it has received a username from a client.

See also:     OnPasswordAuth    

Discuss this help topic in SecureBlackbox Forum