Discuss this help topic in SecureBlackbox Forum

TElFTPSServer.OnFileRetrieveRequest

TElFTPSServer     See also     


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


This event is fired when a client requests to retrieve a file.

Declaration

[C#]
    event TSBFTPSServerFileRequestEvent OnFileRetrieveRequest;
    delegate void TSBFTPSServerFileRequestEvent(Object Sender, string Path, ref int ErrorCode);

[VB.NET]
    Event OnFileRetrieveRequest As TSBFTPSServerFileRequestEvent
    Delegate Sub TSBFTPSServerFileRequestEvent(ByVal Sender As Object, ByVal Path As String, ByRef ErrorCode As Integer)

[Pascal]
    property OnFileRetrieveRequest : TSBFTPSServerFileRequestEvent;
    TSBFTPSServerFileRequestEvent = procedure (Sender: TObject; const Path : string; var ErrorCode : integer) of object;

[C++]
    void get_OnFileRetrieveRequest(TSBFTPSServerFileRequestEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnFileRetrieveRequest(TSBFTPSServerFileRequestEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBFTPSServerFileRequestEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcPath, int32_t szPath, int32_t &ErrorCode);

[PHP]
    TSBFTPSServerFileRequestEvent|callable|NULL get_OnFileRetrieveRequest()
    void set_OnFileRetrieveRequest(TSBFTPSServerFileRequestEvent|callable|NULL $Value)
    callable TSBFTPSServerFileRequestEvent(TObject $Sender, string $Path, integer &$ErrorCode)

[Java]
    TSBFTPSServerFileRequestEvent getOnFileRetrieveRequest();
    void setOnFileRetrieveRequest(TSBFTPSServerFileRequestEvent Value);
    TSBFTPSServerFileRequestEvent.Callback OnFileRetrieveRequest = new TSBFTPSServerFileRequestEvent.Callback() {
        public void TSBFTPSServerFileRequestEventCallback(TObject Sender, String Path, TSBInteger ErrorCode) {
            //...
        }
    }

Parameters

  • Path - path to the requested file.
  • ErrorCode - return the filesystem error using this parameter.
  • pcPath - path to the requested file.
  • szPath - the length of pcPath.

Possible values:

Description

    This event is fired by TElFTPSServer when client requests to retrieve a file from the server. Use parameter ErrorCode to specify whether the request has succeeded.

Discuss this help topic in SecureBlackbox Forum