Discuss this help topic in SecureBlackbox Forum


TElSftpClient     See also     

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

This event is fired when the requested file is opened


    event TSBSftpFileOpenEvent OnOpenFile;
    delegate void TSBSftpFileOpenEvent(Object Sender, byte[] Handle);

    Event OnOpenFile As TSBSftpFileOpenEvent
    Delegate Sub TSBSftpFileOpenEvent(ByVal Sender As Object, ByVal Handle As Byte())

    property OnOpenFile : TSBSftpFileOpenEvent;
    TSBSftpFileOpenEvent = procedure (Sender: TObject; Handle : TSBSftpFileHandle) of object;
    type TSBSftpFileHandle = string;

    void get_OnOpenFile(TSBSftpFileOpenEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnOpenFile(TSBSftpFileOpenEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBSftpFileOpenEvent)(void * _ObjectData, TObjectHandle Sender, const uint8_t pHandle[], int32_t szHandle);

    TSBSftpFileOpenEvent|callable|NULL get_OnOpenFile()
    void set_OnOpenFile(TSBSftpFileOpenEvent|callable|NULL $Value)
    callable TSBSftpFileOpenEvent(TObject $Sender, string $Handle)


  • Handle - the handle by which the opened file is identified afterwards
  • pHandle -
  • szHandle - the length of pcHandle.


    This event is fired by TElSftpClient when the file specified by CreateFile or OpenFile was successfully opened.

See also:     OnDirectoryListing     CreateFile     OpenFile     CloseHandle    

Discuss this help topic in SecureBlackbox Forum