Discuss this help topic in SecureBlackbox Forum

TElFTPSServer.OnFileInfoNeeded

TElFTPSServer     See also     


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


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

Declaration

[C#]
    event TSBFTPSServerFileInfoNeededEvent OnFileInfoNeeded;
    delegate void TSBFTPSServerFileInfoNeededEvent(Object Sender, string Path, TElFTPSServerFileInfo Info, ref int ErrorCode);

[VB.NET]
    Event OnFileInfoNeeded As TSBFTPSServerFileInfoNeededEvent
    Delegate Sub TSBFTPSServerFileInfoNeededEvent(ByVal Sender As Object, ByVal Path As String, ByVal Info As TElFTPSServerFileInfo, ByRef ErrorCode As Integer)

[Pascal]
    property OnFileInfoNeeded : TSBFTPSServerFileInfoNeededEvent;
    TSBFTPSServerFileInfoNeededEvent = procedure (Sender: TObject; const Path : string; Info : TElFTPSServerFileInfo; var ErrorCode : integer) of object;

[C++]
    void get_OnFileInfoNeeded(TSBFTPSServerFileInfoNeededEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnFileInfoNeeded(TSBFTPSServerFileInfoNeededEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBFTPSServerFileInfoNeededEvent)(void * _ObjectData, TObjectHandle Sender, const char * pcPath, int32_t szPath, TElFTPSServerFileInfoHandle Info, int32_t &ErrorCode);

[PHP]
    TSBFTPSServerFileInfoNeededEvent|callable|NULL get_OnFileInfoNeeded()
    void set_OnFileInfoNeeded(TSBFTPSServerFileInfoNeededEvent|callable|NULL $Value)
    callable TSBFTPSServerFileInfoNeededEvent(TObject $Sender, string $Path, TElFTPSServerFileInfo $Info, integer &$ErrorCode)

[Java]
    TSBFTPSServerFileInfoNeededEvent getOnFileInfoNeeded();
    void setOnFileInfoNeeded(TSBFTPSServerFileInfoNeededEvent Value);
    TSBFTPSServerFileInfoNeededEvent.Callback OnFileInfoNeeded = new TSBFTPSServerFileInfoNeededEvent.Callback() {
        public void TSBFTPSServerFileInfoNeededEventCallback(TObject Sender, String Path, TElFTPSServerFileInfo Info, TSBInteger ErrorCode) {
            //...
        }
    }

Parameters

  • Path - path to the requested file.
  • Info - contains the requested file info.
  • 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 a file info. Use parameter ErrorCode to specify whether the request has succeeded.

Discuss this help topic in SecureBlackbox Forum