[DUG] TCP/IP Client Status - Indy

Jeremy Coulter vss at vss.co.nz
Thu Sep 29 21:26:51 NZST 2005


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://ns3.123.co.nz/pipermail/delphi/attachments/20050929/bf44e941/attachment.html


More information about the Delphi mailing list