Autor Beitrag
o_O
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 46

Windows XP
Delphi 2005 Architket
BeitragVerfasst: Do 27.07.06 13:28 
Hallu =)

Ich hab eine Frage zu der Komponente TServerSocket, wie sendet man eine Text oder eine Nachricht an den Clienten ?
Ich hab schon gesucht aber nichts davon klappt kommt immer ein Fehler....

kann mir das jemand sagen ?
Fighter#1
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 787

Win XP, Ubuntu 8.04
Turbo Delphi 2006, Delphi 2005 Pe, Delphi 5 Pe, Netbeans 6.1, Eclipse, Microsoft VisualC#, Dev C++, PHP, HTML, CSS
BeitragVerfasst: Do 27.07.06 13:45 
ServerSocket1.Socket.Connections[0].SendText('HUHU!');

oder

For i := 0 To SerVerSocket1.Socket.ActiveConnections -1 do
ServerSocket1.Socket.Connections[i].SendText('Hallo');

Oberes sendet an den ersten verbundenen Clienten, das untere an alle

_________________
Wer andere beherrscht ist stark,
wer sich selbst beherrscht ist mächtig. Lao Tse
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Do 27.07.06 14:22 
Moin!

Dazu gibt´s auch einen FAQ-Beitrag und ein Beispielprogramm. ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.