Autor Beitrag
Gottdrak99
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 20


D7 & D6 Ent
BeitragVerfasst: Mi 08.10.03 19:48 
hi wollte mal fragen, wie man die geschwindigkeit von versenden und empfangen ins progg reinmacht (nicht von netzwerk)
MrSaint
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1033
Erhaltene Danke: 1

WinXP Pro SP2
Delphi 6 Prof.
BeitragVerfasst: Sa 11.10.03 10:06 
wie meinst du das? so, dass du die Geschwindighkeit begrenzt oder wie? Also sowas musst du schon selber coden 8)


MrSaint

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


D7 & D6 Ent
BeitragVerfasst: Di 14.10.03 18:48 
ne, einfach wenn ich z.B. was uploade muss es die geschwindigkeit anzeigen, beim downloaden das gleiche
ixtreme
Gast
Erhaltene Danke: 1



BeitragVerfasst: Di 14.10.03 22:08 
Also mit Indy würd es in etwa so gehen...

habs aber nicht getestet...

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.IdHTTP1Work(Sender: TObject; AWorkMode: TWorkMode;
  const AWorkCount: Integer);
begin
Label1.Caption:=idHttp1.url.Document+' ('+inttostr(AWorkCount div 1024)+' kB von '+inttostr(IdHTTP1.Response.ContentStream.Size div 1024)+' kB)';
Gauge1.Progress:=AWorkCount*100 div IdHTTP1.Response.ContentStream.Size;
application.ProcessMessages;
end;