Autor Beitrag
ralfi
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 153



BeitragVerfasst: Sa 07.06.03 16:24 
Ich habe ein kleines Client/Server Programm geschrieben. Server läuft auf meinem Rechner und Clients wo anders. Wenn ein Client connectet, wird auf dem Server in eine ListBox seine IP-Adresse hinzufügt. Wenn der Client offline geht, sendet er beim OnDisconnect seine IP-Adresse nochmal, Server finden diese Adresse im ListBox und löscht die. So sehe ich, das Client offline ist. Das funktioniert auch gut. Aber: wenn Client-Rechner abstürzt (Windows-Problemm oder was immer das sein kann), wird die OnDisconnect-Procedure des Clients doch nicht ausgeführt oder? Wie kann ich dann sehen, ob Client disconnected hat? Sein IP bleibt dann ewig in der Liste, bis ich den Server schließe und neu starte. Kennt jemand die einfachste Methode, dieses Problem zu lösen? Danke!
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: So 08.06.03 02:11 
Z.Bsp. in regelmäßigen Abständen die Clients ansprechen. Wenn sie nicht antworten, sind sie offline.

_________________
If accidentally read, induce vomitting.
ralfi Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 153



BeitragVerfasst: So 08.06.03 15:06 
OK, und wie z.B. kann ich den Client ansprechen?
Ex0rzist
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 550

Win XP Prof.
Mandrake 10.0

D6
BeitragVerfasst: Mo 09.06.03 00:59 
Du kannst einen bestimmten String (z.Bsp. '#Status*') verschicken, dann soll der Client etwas Vorgegebenes (z.Bsp. '#Online*') antworten.

_________________
If accidentally read, induce vomitting.