Autor Beitrag
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 18.09.05 09:58 
Kann man das irgendwie proggen das man eine Liste mit möglichen Hosts hat und dann nacheinander probiert wird zu verbinden. Im Schulnetzwerk ist nämlich nich garantiert dass der Server immer am gleiche nPC an ist. Es soll also eine Liste durchgegangen werden und dann irgendwo ist halt der Server.

Koller

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: So 18.09.05 11:11 
Moin!

Ja, kann man. :wink: (Damit ist deine Frage eigentlich beantwortet...)

Mach eine StringListe auf und pack die IPs/Hostnamen rein, die du durchgehen willst, dann machste eine Schleife über die Elemente der Liste und probierst, ob´s klappt.

cu
Narses
Marco D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: So 18.09.05 16:44 
Titel: Auto
Und wie kann ich dann in der Schleife abfragen ob der Server richtig ist. Ich habs schon mal probiert aber das Ereignis 'OnConnect' tritt beim Clientsocket (komischerweise :wink2:) nicht ein.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: So 18.09.05 21:57 
Moin!

user profile iconKoller hat folgendes geschrieben:
Und wie kann ich dann in der Schleife abfragen ob der Server richtig ist. Ich habs schon mal probiert aber das Ereignis 'OnConnect' tritt beim Clientsocket (komischerweise :wink2:) nicht ein.

Dann hast du wohl einen Programmierfehler drin oder der Serversocket ist nicht offen. Zeig mal Code (Client und Server)... :wink:

cu
Narses
Marco D. Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mo 19.09.05 15:43 
Titel: Hostsuche
Hab den Code grad nich da werds aber nochmal machen und den morgen reinstellen. CU Koller :wink2:

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot