Discuss this help topic in SecureBlackbox Forum

TElSimpleFTPSServer.OnSiteCommand

TElSimpleFTPSServer     


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


This event is fired when a SITE command is received by the server.

Declaration

[C#]
    event TSBFTPSServerSiteCommandEvent OnSiteCommand;
    delegate void TSBFTPSServerSiteCommandEvent(Object Sender, string Parameters, ref int ErrorCode, ref string Response);

[VB.NET]
    Event OnSiteCommand As TSBFTPSServerSiteCommandEvent
    Delegate Sub TSBFTPSServerSiteCommandEvent(ByVal Sender As Object, ByVal Parameters As String, ByRef ErrorCode As Integer, ByRef Response As String)

[Pascal]
    property OnSiteCommand : TSBFTPSServerSiteCommandEvent;
    TSBFTPSServerSiteCommandEvent = procedure(Sender: TObject; const Parameters : string; var ErrorCode : integer; var Response : string) of object;

[C++]
    void get_OnSiteCommand(TSBFTPSServerSiteCommandEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnSiteCommand(TSBFTPSServerSiteCommandEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBFTPSServerSiteCommandEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcParameters, int32_t szParameters, int32_t &ErrorCode, char * pcResponse, int32_t &szResponse);

[PHP]
    TSBFTPSServerSiteCommandEvent|callable|NULL get_OnSiteCommand()
    void set_OnSiteCommand(TSBFTPSServerSiteCommandEvent|callable|NULL $Value)
    callable TSBFTPSServerSiteCommandEvent(TObject $Sender, string $Parameters, integer &$ErrorCode, string &$Response)

[Java]
    TSBFTPSServerSiteCommandEvent getOnSiteCommand();
    void setOnSiteCommand(TSBFTPSServerSiteCommandEvent Value);
    TSBFTPSServerSiteCommandEvent.Callback OnSiteCommand = new TSBFTPSServerSiteCommandEvent.Callback() {
        public void TSBFTPSServerSiteCommandEventCallback(TObject Sender, String Parameters, TSBInteger ErrorCode, TSBString Response) {
            //...
        }
    }

Parameters

  • Parameters - the parameters of the received SITE command.
  • Response - contains the response to the client.
  • ErrorCode - contains the error code to be sent to the client.
  • pcParameters - the parameters of the received SITE command.
  • szParameters - the length of pcParameters.
  • pcResponse - contains the response to the client.
  • szResponse - the length of pcResponse.

Description

    This event is fired when the SITE command is received from the client. The handler can modify the server's response and the error code.

Discuss this help topic in SecureBlackbox Forum