Solved

Making a download manager

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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
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…
When you create an app prototype with Adobe XD, you can insert system screens -- sharing or Control Center, for example -- with just a few clicks. This video shows you how. You can take the full course on Experts Exchange at http://bit.ly/XDcourse.

744 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now