Autor Beitrag
superchatti
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 296

Win XP, Red Hat Linux 7.3
Delphi 6 PE
BeitragVerfasst: Sa 08.11.03 10:53 
Ich würde gerne einen Downloader Programmieren der sich wie GetRight jeden gestarteten Download vor nimmt.
Wie realisiere ich sowas am besten?

Es ist mir schon klar wie ich eine Datei downloade aber wie zeige ich die Prozente an und wieviel von wieviel KB noch fehlen etc.

Wäre schön wenn ihr mir helfen könntet

_________________
mfG Superchatti
MrSaint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1033
Erhaltene Danke: 1

WinXP Pro SP2
Delphi 6 Prof.
BeitragVerfasst: Sa 08.11.03 14:01 
also getRight kann ja auch Downloads noch resumen und so... das is schon n stück arbeit bis sowas steht...

Wie lädst du denn Dateien runter? Ich würd dir am besten nen einfach IdTCPClient (Indy Kompos) empfehlen, um sowas zu realisieren.. sollte man sich aber mit Threads auskennen, damit man damit arbeiten kann...



MrSaint

_________________
"people knew how to write small, efficient programs [...], a skill that has subsequently been lost"
Andrew S. Tanenbaum - Modern Operating Systems
superchatti Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 296

Win XP, Red Hat Linux 7.3
Delphi 6 PE
BeitragVerfasst: Sa 08.11.03 14:33 
Ja ich mache es mit Indy Komponenten

_________________
mfG Superchatti
MrSaint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1033
Erhaltene Danke: 1

WinXP Pro SP2
Delphi 6 Prof.
BeitragVerfasst: Sa 08.11.03 14:40 
also dann is das doch net weiter schwer! guckst, wie groß die ganze datei is (muss man irgendwie rausbekommen können; weiß grad net wie) und dann ziehst du einfach immer wenn du wieder n TCP Paket bekommst die Bytes des TCP Pakets ab! is doch dann net schwer mit wieviel KB (%) noch fehlen!


MrSaint

_________________
"people knew how to write small, efficient programs [...], a skill that has subsequently been lost"
Andrew S. Tanenbaum - Modern Operating Systems
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 08.11.03 15:49 
dafür gibts bei indy http kompo die ereignisse onwork onworkbegin und onworkend !

_________________
In the beginning was the word.
And the word was content-type: text/plain.