Solved

Making a download manager

Posted on 2003-11-09
4
296 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

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…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
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…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …

829 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