From c803484638d165ce18f0333d154183443bb346b3 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tom=C3=A1=C5=A1=20Brada?= Date: Wed, 21 Oct 2015 13:28:32 +0200 Subject: [PATCH] Skel for download manager. --- Download.pas | 21 +++++++++++++++++++++ brodnetd.pas | 1 + 2 files changed, 22 insertions(+) create mode 100644 Download.pas diff --git a/Download.pas b/Download.pas new file mode 100644 index 0000000..c49af4c --- /dev/null +++ b/Download.pas @@ -0,0 +1,21 @@ +unit Download; +{manage downloads} + +INTERFACE +{todo} + +IMPLEMENTATION +{ + Same idea here as upmgr. Have an tAggr for each peer reporting speed and + tJob for each file request saving to file and reqesting missed segments. + The aggr should have limit of paralele jobs. Jobs will first be linked in + tAggr queue and then started as slots become available. + + After node restart, notify requester with a No-Source error. But should + not be forgotten. More advanced DM could consult CHK or Category the file + was found. +} + + + +END. \ No newline at end of file diff --git a/brodnetd.pas b/brodnetd.pas index e0acd03..cfb1030 100644 --- a/brodnetd.pas +++ b/brodnetd.pas @@ -8,6 +8,7 @@ uses ServerLoop ,AsyncProcess ,upmgr ,TestFS + ,Download ; BEGIN -- 2.11.4.GIT