[DUG] TCP/IP Client Status - Indy
Jeremy Coulter
vss at vss.co.nz
Thu Sep 29 22:16:30 NZST 2005
yeah this is what I was thinking after I sent the email :-) Bens idea of a
ping might be the idea too.
Jeremy
_____
From: delphi-bounces at ns3.123.co.nz [mailto:delphi-bounces at ns3.123.co.nz] On
Behalf Of Ross Levis
Sent: 29 September 2005 22:15
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] TCP/IP Client Status - Indy
You probably need to poll the client and/or server at regular intervals.
You should get a socket error if the connection is not available.
----- Original Message -----
From: Jeremy Coulter <mailto:vss at vss.co.nz>
To: delphi at delphi.org.nz
Sent: Thursday, September 29, 2005 9:26 PM
Subject: [DUG] TCP/IP Client Status - Indy
Hi All.
I am working on a client server app. that communicates via TCP/IP using
Indy. Pretty sure its just the normal indy that comes with D7. i.e. I have
not updated it.
I started looking at the basic client/server demos and they work fine,
EXCEPT, I seem to be experiencing a bit of a problem.
If I connect the client to the server (both are on diff. machines), and I
unplug the network cable from the client PC, the status on the client says
its still connected, and the server seems to think the same, YET, the
network cable is unplugged !
I then put a label on the client that gets the status from the
"IdTCPClientStatus" event, and when the cable is unplugged it just says
"Connected".
What I am trying to simulate here is if data is being send via the internet,
and say, the users ADSL goes out. Its important to know the client is no
longer connected for BOTH the client and server.
The idea will be, the network connection of whatever kind is lost, so the
client will know to log any data to a buffer type file till the client comes
back on line, and the server would need some sort of status to be shown to
say the connection has been lost and to send a notification...potentually...
Can anyone give me a few pointers? or am I just expecting too much of my
app?
Cheers, Jeremy
_____
_______________________________________________
Delphi mailing list
Delphi at ns3.123.co.nz
http://ns3.123.co.nz/mailman/listinfo/delphi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20050929/86ecda4b/attachment.html
More information about the Delphi
mailing list