Use models for persistent downloads: - FUQID queues a file. Wants to be notified when anything happens with regards to that file, but wants the node to continue to download it even when FUQID isn't running. - The user queues a file from fproxy. He wants to then monitor its progress from within FUQID. - In both of the above cases the client may want the node to directly download the file to its final destination, using up temp space there. - The USK infrastructure queues a request for the next 3 versions of a website. It will be told when and if one of these is triggered. (This is internal).
There will certainly be cases where a request does not want to be global. So: ReturnType - as below Persistence - as below, but "connection" is invalid if Global is set Global - true = part of the global queue, all clients can see status; expected to go to disk, and stay where it is put. When fproxy queues a file to be downloaded to disk, for example, it will normally go to the global queue. I would expect FUQID to display the status of items in the global queue, and, generally, to queue stuff to it. If on the other hand a client needs a file for a temporary operation, such as Freemail or audio streaming, it will use persistence=connection. If it needs it for a temporary but long-term purpose, e.g. possibly a spider, it might set persistence=forever, global=false. On Mon, Jan 30, 2006 at 06:51:49PM +0000, Matthew Toseland wrote: > ReturnType: > - direct // reply via FCP > - cache // don't return at all > - chunked // in segments as available > - disk // write to a filename provided by client (dangerous) > > If disk: > Filename=<absolute filename> > = the filename to which to write the data (with full path) > TempFilename=<relative filename> > = the filename to which to write the data before it has been completed. > Will be renamed to Filename when completely downloaded. Before that, can > be used as temporary space, up to the size of the file to be fetched. > > Persistence: > - connection // tied to a connection > - reboot // tied to a client name, disappears on reboot > - forever // tied to a client name, persists across reboots > > DropTime: > - -1/0/default // keep forever until satisfied or run out of retries > - 1138646820000 // keep until Mon Jan 30 18:47:00 GMT 2006 -- Matthew J Toseland - toad at amphibian.dyndns.org Freenet Project Official Codemonkey - http://freenetproject.org/ ICTHUS - Nothing is impossible. Our Boss says so. -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 189 bytes Desc: Digital signature URL: <https://emu.freenetproject.org/pipermail/tech/attachments/20060221/8e662b06/attachment.pgp>
