[DUG] TCP/IP Client Status - Indy

Ross Levis ross at stationplaylist.com
Thu Sep 29 22:14:41 NZST 2005


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 
  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/354b6b93/attachment.html


More information about the Delphi mailing list