Discuss this help topic in SecureBlackbox Forum


TElSimpleFTPSServerSessionThread     See also     

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

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


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

    Event OnCommandReceived As TSBFTPSServerCommandReceivedEvent
    Delegate Sub TSBFTPSServerCommandReceivedEvent(ByVal Sender As Object, ByVal Command As String, ByVal Parameters As String, ByRef Ignore As Boolean)

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

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

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

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


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


    This event is fired by TElSimpleFTPSServerSessionThread when a command has been received from client. Set Ignore to True if the server should not execute the command. The server will report on command processing by OnCommandProcessed event.

See also:     OnCommandProcessed    

Discuss this help topic in SecureBlackbox Forum