Autor Beitrag
Bomania
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 139

Win XP

BeitragVerfasst: Di 25.02.03 21:05 
Hallo zusammen,

kann mir jemand verraten, wie ich einen Ping absetzen kann? Gibt es vielleicht sogar eine Komponente oder eine fertige Funktion dafür?

Vielen Dank
Gruß,
Björn
Luckie
Ehemaliges Mitglied
Erhaltene Danke: 1



BeitragVerfasst: Di 25.02.03 21:24 
Welche Delphi-Version? Alle Versionen höher als die Personal haben entsprechende Komponenten dabei. Früher war es fastnet jetzt ist es Indy oder so. Die Indys bekommst du aber auch so im Internet als Freeware.
Bomania Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 139

Win XP

BeitragVerfasst: Di 25.02.03 21:27 
Ich habe die Pro, und das mit der Indy-Komponente habe ich auch schon versucht. Dieses idEcho ist aber leider kein normaler Ping sondern anscheinend zum Connecten etc... Ehrlich gesagt komme ich damit auch nicht so richtig klar.
M4EiB
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 41



BeitragVerfasst: Do 27.02.03 13:29 
Die Komponenten fürs Pingen ist die TIdIcmpClient!
ausblenden Quelltext
1:
2:
IdIcmpClient1.host setzen
IdIcmpClient1.ping;

und unter
ausblenden Quelltext
1:
IdIcmpClient1.ReplyStatus....					

die Ergebnisse auslesen (was dich interessiert ist wahrscheinlich IdIcmpClient1.ReplyStatus.MsRoundTripTime)

Moderiert von user profile iconTino: Code-Tags hinzugefügt.
Bomania Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 139

Win XP

BeitragVerfasst: Do 27.02.03 16:40 
Vielen Dank!
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Fr 28.02.03 16:38 
bei den INDY demos ist auch ein gute PING demo dabei !

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