Autor Beitrag
>M@steR<
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 288
Erhaltene Danke: 3



BeitragVerfasst: Di 07.08.07 00:38 
Gelöscht


Zuletzt bearbeitet von >M@steR< am Di 17.09.13 01:58, insgesamt 1-mal bearbeitet
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 07.08.07 00:48 
Moin!

user profile icon>M@steR< hat folgendes geschrieben:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
//...
if Server1.Enabled then
  ServerSocket1.Socket.Connections[0].SendText('REFRESH' + #13 +
//...

Diese Eigenschaft hat nix mit dem Verbindungszustand des Sockets zu tun, du meinst vermutlich .Connected bzw. .Active? :nixweiss:

Aber selbst wenn der Server online ist (.Active = TRUE), wer sagt denn, dass dann auch eine Client-Verbindung im .Connections[]-Array drin ist (und genau darauf weist der Fehler hin)! :mahn:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
>M@steR< Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 288
Erhaltene Danke: 3



BeitragVerfasst: Di 07.08.07 01:01 
Gelöscht


Zuletzt bearbeitet von >M@steR< am Di 17.09.13 01:58, insgesamt 1-mal bearbeitet
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 07.08.07 01:08 
user profile iconNarses hat folgendes geschrieben:
Aber selbst wenn der Server online ist (.Active = TRUE), wer sagt denn, dass dann auch eine Client-Verbindung im .Connections[]-Array drin ist (und genau darauf weist der Fehler hin)! :mahn:

_________________
There are 10 types of people - those who understand binary and those who don´t.
>M@steR< Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 288
Erhaltene Danke: 3



BeitragVerfasst: Di 07.08.07 01:17 
Gelöscht


Zuletzt bearbeitet von >M@steR< am Di 17.09.13 01:58, insgesamt 1-mal bearbeitet
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 07.08.07 01:22 
Moin!

Dann mach´s doch mal so:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
procedure TForm1.NEXT();  
begin  
  if Server1.Enabled and (ServerSocket1.Socket.ActiveConnections > 0) then
    ServerSocket1.Socket.Connections[0].SendText('NEXT' + #13);  
  if Client1.Enabled then
    ClientSocket1.Socket.SendText('NEXT' + #13);  
end;

Exception jetzt weg? ;)

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
>M@steR< Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 288
Erhaltene Danke: 3



BeitragVerfasst: Di 07.08.07 01:28 
Gelöscht


Zuletzt bearbeitet von >M@steR< am Di 17.09.13 01:58, insgesamt 1-mal bearbeitet
Narses
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Administrator
Beiträge: 10185
Erhaltene Danke: 1261

W11x64
TP3 .. D7pro .. D10.2CE
BeitragVerfasst: Di 07.08.07 01:32 
Moin!

user profile icon>M@steR< hat folgendes geschrieben:
aber warum? :nixweiss:

user profile iconNarses hat folgendes geschrieben:
wer sagt denn, dass dann auch eine Client-Verbindung im .Connections[]-Array drin ist (und genau darauf weist der Fehler hin)! :mahn:

:roll:

cu
Narses

_________________
There are 10 types of people - those who understand binary and those who don´t.
>M@steR< Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 288
Erhaltene Danke: 3



BeitragVerfasst: Di 07.08.07 01:35 
Gelöscht