Discuss this help topic in SecureBlackbox Forum

TElSimpleFTPSServer.OnCommandReceived

TElSimpleFTPSServer     See also     


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


This event is fired when a command is received from client.

Declaration

[C#]
    event TSBFTPSServerCommandReceivedEvent OnCommandReceived;
    delegate void TSBFTPSServerCommandReceivedEvent(Object Sender, string Command, string Parameters, ref bool Ignore);

[VB.NET]
    Event OnCommandReceived As TSBFTPSServerCommandReceivedEvent
    Delegate Sub TSBFTPSServerCommandReceivedEvent(ByVal Sender As Object, ByVal Command As String, ByVal Parameters As String, ByRef Ignore As Boolean)

[Pascal]
    property OnCommandReceived : TSBFTPSServerCommandReceivedEvent;
    TSBFTPSServerCommandReceivedEvent = procedure(Sender: TObject; const Command, Parameters: string; var Ignore: boolean) of object;

[C++]
    void get_OnCommandReceived(TSBFTPSServerCommandReceivedEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnCommandReceived(TSBFTPSServerCommandReceivedEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBFTPSServerCommandReceivedEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcCommand, int32_t szCommand, const char * pcParameters, int32_t szParameters, int8_t &Ignore);

[PHP]
    TSBFTPSServerCommandReceivedEvent|callable|NULL get_OnCommandReceived()
    void set_OnCommandReceived(TSBFTPSServerCommandReceivedEvent|callable|NULL $Value)
    callable TSBFTPSServerCommandReceivedEvent(TObject $Sender, string $Command, string $Parameters, bool &$Ignore)

[Java]
    TSBFTPSServerCommandReceivedEvent getOnCommandReceived();
    void setOnCommandReceived(TSBFTPSServerCommandReceivedEvent Value);
    TSBFTPSServerCommandReceivedEvent.Callback OnCommandReceived = new TSBFTPSServerCommandReceivedEvent.Callback() {
        public void TSBFTPSServerCommandReceivedEventCallback(TObject Sender, String Command, String Parameters, TSBBoolean Ignore) {
            //...
        }
    }

Parameters

  • Command - contains the command.
  • Parameters - contains command parameters like flags, file names, etc.
  • Ignore - set this parameter to True if the server should ignore the command.
  • pcCommand - contains the command.
  • szCommand - the length of pcCommand.
  • pcParameters - contains command parameters like flags, file names, etc.
  • szParameters - the length of pcParameters.

Description

    This event is fired by TElSimpleFTPSServer when it has received a command from client. Set Ignore to True if the server should not execute the command. The server will report the command completion via OnCommandProcessed event.

See also:     OnCommandProcessed    

Discuss this help topic in SecureBlackbox Forum