Autor Beitrag
Speed
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

WIN XP
Delphi 2006 Prof.
BeitragVerfasst: Fr 07.10.05 17:56 
Hey,

ich weiß hier war schon mal was mit Nachricht an alle Clients schicken.
Aber wenn ich jetzt das dort dazu schreibe, wer weiß wie lange das dann dauert...
Also sorry deswegen. :nixweiss:

Jetzt zu meinem Problem:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
for i:=0 to Server.Socket.ActiveConnections-1 do
      begin
         Server.Socket.Connections[i].SendText(Msg);
      end;


Mit dem Code will ich vom Server ne Nachricht an alle Clients schicken, aber irgendwie funzt das net. Also die Verbindung steht, da die IP vom Client beim Server in ne Listbox geschrieben wird, sobald er sich einloggt. Außerdem geht es auch, dass ne Nachricht vom Client an den Server geschickt wird. Halt bloß ne andersrum, wo ich es mit dem oben angegebenen Code mache.

MfG

Speed
Speed Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 48

WIN XP
Delphi 2006 Prof.
BeitragVerfasst: Sa 08.10.05 11:32 
OK, habs jetzt selber hinbekommen :D

Greetz... Speed