Autor Beitrag
GTA-Place
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Fr 04.03.05 18:59 
Ich wollte mit idTCPClient eine Datei an idTCPServer schicken.
Hab mir das ImageServer-Besispiel von Indy angeguckt und das dann so eingebaut:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
  DStream := TFileStream.Create('datei.exe', fmOpenRead + fmShareDenyNone);
  TCPClient.OpenWriteBuffer;
  TCPClient.WriteStream(DStream);
  TCPClient.CloseWriteBuffer;
  FreeAndNil(DStream);


Funktioniert ja auch, aber jetzt das Problem:

Ich hab in meinem Programm noch ein Fortschittsbalken, eine Max-Geschwindigkeits-Einstellung, eine Anzeige der Geschwindigkeit und eine Anzeige der verbleibenden Zeit.

Naja, das geht aber nicht, wenn ich es so wie oben mache.

Also, wie / mit was muss ich die Datei senden, damit ich auch noch solche Sachen bekomme?
Vielleicht mir WriteBuffer oder sonstwas?

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
wulfskin
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1349
Erhaltene Danke: 1

Win XP
D5 Pers (SSL), D2005 Pro, C, C#
BeitragVerfasst: Fr 04.03.05 19:14 
Hallo,

du musst die Datei in einzelne kleine Stücke aufteilen und dann immer teilweise versenden. Dann kannst du auch eine ProgressBar ohne Probleme einbauen.

Gruß Hape!

_________________
Manche antworten um ihren Beitragszähler zu erhöhen, andere um zu Helfen.
GTA-Place Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Fr 04.03.05 19:18 
Und wie teil ich die Datei auf?

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
demo88
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 160

Ubuntu 6.04, Win XP
Delphi 7
BeitragVerfasst: Sa 05.03.05 15:48 
www.delphi-total.de/tipps/?id=431

//Edit:

Und so bekommt man sie wieder zusammen:
www.delphi-total.de/tipps/?id=432
GTA-Place Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 05.03.05 17:57 
Hey, Danke!

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)
Spieler1
ontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 469


D6 Pers
BeitragVerfasst: Sa 05.03.05 18:13 
Wow, hat Delphi-Source.de inzwischen viele Domains:

www.Delphi-Source.de
www.Delphi-Treff.de
www.dsdt.info
www.delphi-total.de
www.Delphi-Kurs.de
www.delphi-groups.de
www.delphi-total.com

Und vielleicht sogar noch mehr? :lol:


Zuletzt bearbeitet von Spieler1 am Sa 05.03.05 19:09, insgesamt 2-mal bearbeitet
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Sa 05.03.05 18:45 
Spieler1
ontopic starontopic starontopic starhalf ontopic starofftopic starofftopic starofftopic starofftopic star
Beiträge: 469


D6 Pers
BeitragVerfasst: Sa 05.03.05 18:47 
Coder hat folgendes geschrieben:
www.delphi-kurs.de :mrgreen:
Hab's der Liste oben mal angefügt. :mrgreen:
Coder
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 1383
Erhaltene Danke: 1

WinXP
D2005 PE
BeitragVerfasst: Sa 05.03.05 18:50 
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Sa 05.03.05 18:57 
*räusper*
Hier gehts nicht darum die Domains von DSDT zu sammeln, sondern darum, Dateien zu versenden. Also bitte zurück zum Thema.

_________________
JSXGraph
GTA-Place Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
EE-Regisseur
Beiträge: 5248
Erhaltene Danke: 2

WIN XP, IE 7, FF 2.0
Delphi 7, Lazarus
BeitragVerfasst: Sa 05.03.05 18:58 
Wir (Kroni und ich) hängen gerade beim Connecten fest.
Er hat einen Router + Firewall und da sind alle Ports zu.
Aber z.B. bei MSN kann er Dateien empfangen, wir haben den Port ausprobiert, kommt aber auch "Connection Timed Out".

Weiß einer wieso?

_________________
"Wer Ego-Shooter Killerspiele nennt, muss konsequenterweise jeden Horrorstreifen als Killerfilm bezeichnen." (Zeit.de)