Newsgroups : Borland : borland.public.delphi.internet.winsock : 2007 Apr : Tidtcpserver ondisconnected event
| Subject: | Tidtcpserver ondisconnected event |
| Posted by: | "mustafa korkmaz" (no..@none.com) |
| Date: | 18 Apr 2007 12:40:21 |
Q1:
Athread.connection.readtimeout := 20000;
if the client does not send any data to server in 20 seconds the connection of client is closed
by server.And ondisconnect event is called by indy.Is this exactly true?
Is ondisconnected event called in every situation? (User computer(client) may crash or suddenly shutdown..)
Or must I add any code to Onexecute event of Tidtcpserver for this purpose?
Q2:
Athread.connection.disconnect;
or
Athread.connection.disconnectsocket;
On any situation if we call these methods in any where of our server program, is ondisconnected event of
Tidtcpserver called or triggered by indy?
(User computer(client) may crash or suddenly shutdown..)
if this event is not being called what must I do?
Because I do alot of necessary process in ondisconnected event.