Solved

Making a download manager

Posted on 2003-11-09
4
295 Views
Last Modified: 2013-12-03
I want to make a download manager type thing, a simple one.
I want it to be able to download at least 3 files at the same time and show the progess in a progess bar along with the time it will take, download rate.
And most importantly to be able to pause it and resume and stop the download.
I was able to download a file of the internet but i didnt have any download rate and time it will take and i couldnt find how to pause/resume/stop it.
I would appreciate source codes.
0
Comment
Question by:gigazer
4 Comments
 
LVL 6

Accepted Solution

by:
DaFox earned 50 total points
ID: 9711439
Hi,

take a look at this project (comes with full source code) -> http://codecentral.borland.com/codecentral/ccweb.exe/download?id=17604

It's a multithreaded download manager that is able to start/stop/pause/resume downloads. Downloads the files with multiple streams, gets the correct file size and calculates the remaining time.

It's a very good coded project (see the votes!).

Best regards,
Markus

PS: BTW, it's using the Indy components.
0
 
LVL 5

Assisted Solution

by:DeerBear
DeerBear earned 50 total points
ID: 9712949
Hi,

Along with the suggested project, you should take a look at the
Indy components.

The basic idea for download time is that you have to sample out some data and times and
make the appropriate calculations( if I got W bytes in X time, then in Y time I'll get Z bytes ).

As to resume/pause download, I would *guess* that you
should keep track of the file position and issue it when starting to download.

The main problem in this area is that the server MUST support resuming and not all of
them do.

My 2c.

HTH,

Andrew
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
code issue 8 129
Unique identifier on a terminal server (rdp) 4 53
Installshield for Embarcadero EX 10.1 Berlin 4 39
Delphi problems to abort a printjob 9 18
Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question