Discuss this help topic in SecureBlackbox Forum

TElSimpleFTPSServerSessionThread.OnCommandUnhandled

TElSimpleFTPSServerSessionThread     See also     


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


This event is fired when server has failed to execute a command.

Declaration

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

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

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

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

[PHP]
    TSBFTPSServerCommandUnhandledEvent|callable|NULL get_OnCommandUnhandled()
    void set_OnCommandUnhandled(TSBFTPSServerCommandUnhandledEvent|callable|NULL $Value)
    callable TSBFTPSServerCommandUnhandledEvent(TObject $Sender, string $Command, string $Parameters, bool &$Ignore)

[Java]
    TSBFTPSServerCommandUnhandledEvent getOnCommandUnhandled();
    void setOnCommandUnhandled(TSBFTPSServerCommandUnhandledEvent Value);
    TSBFTPSServerCommandUnhandledEvent.Callback OnCommandUnhandled = new TSBFTPSServerCommandUnhandledEvent.Callback() {
        public void TSBFTPSServerCommandUnhandledEventCallback(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 TElFTPSServer when it has failed to execute a client's command. Set the Ignore parameter to True if the server should not execute the command.

See also:     OnCommandReceived    

Discuss this help topic in SecureBlackbox Forum