Fredrik Larsson schrieb:
The TWSocketClientClass is same as TWSocket. I am quite sure that you can
add the onchangestate event just by typecasting to TWSocket.
The following compiles ok...
procedure TForm1.WSocket1ChangeState(Sender: TObject; OldState,
NewState: TSocketState);
begin
//do something
end;
procedure TForm1.WSocketServer1ClientConnect(Sender: TObject;
Client: TWSocketClient; Error: Word);
begin
twsocket(client).OnChangeState := WSocket1ChangeState;
end;
Regards, Fredrik.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On
Behalf Of Frank Wunderlich
Sent: Thursday, June 30, 2005 11:04 PM
To: twsocket@elists.org
Subject: [twsocket] Servertimeout ... i don't get it working
Hi,
i've asked you a few days before because i want to make my server watch for
loosing connections.
the client has the event OnChangeState but the server have nothing like this
for the client-connection-lost (not disconnect).
i tried to set events for new created clients, ive tried to send data to the
client and waiting for an error, but noting happens ;< can anybody give me a
delphi-example to show how to doing this?
hope you can help
Greets Frank
--
To unsubscribe or change your settings for TWSocket mailing list please goto
http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be
its right, that have i trying, too. but this recognizes only normal
disconnect and fires an AccessViolation. ;<
Greets Frank
--
To unsubscribe or change your settings for TWSocket mailing list
please goto http://www.elists.org/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be