Indy 9
|
TOnRetrieveFileEvent = procedure (ASender: TIdFTPServerThread; const AFileName: string; var VStream: TStream) of object;
TOnRetrieveFileEvent is the type used to represent the TIdFTPServer.OnRetrieveFile property, allows the RETR command event handler to perform processing required to load the contents of the file specified in AFilename into a stream constructed by the TOnRetrieveFileEvent event handler. AStream is a variable parameter that contains a reference to the stream created by the event Handler, or Nil if the operation could not be performed by the event handler.
The FTP server implementation must assign a procedure to the TOnRetrieveFileEvent event handler to allow responding to the event notification.