<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2722" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV dir=ltr align=left><SPAN class=593491510-29092005><FONT face=Arial
color=#0000ff size=2>yeah this is what I was thinking after I sent the email
:-) Bens idea of a ping might be the idea too.</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=593491510-29092005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=593491510-29092005><FONT face=Arial
color=#0000ff size=2>Jeremy</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> delphi-bounces@ns3.123.co.nz
[mailto:delphi-bounces@ns3.123.co.nz] <B>On Behalf Of </B>Ross
Levis<BR><B>Sent:</B> 29 September 2005 22:15<BR><B>To:</B> NZ Borland
Developers Group - Delphi List<BR><B>Subject:</B> Re: [DUG] TCP/IP Client Status
- Indy<BR></FONT><BR></DIV>
<DIV></DIV>
<DIV><FONT face=Arial size=2>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.</FONT></DIV>
<BLOCKQUOTE
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=vss@vss.co.nz href="mailto:vss@vss.co.nz">Jeremy Coulter</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=delphi@delphi.org.nz
href="mailto:delphi@delphi.org.nz">delphi@delphi.org.nz</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, September 29, 2005 9:26
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [DUG] TCP/IP Client Status -
Indy</DIV>
<DIV><BR></DIV>
<DIV><SPAN class=640441709-29092005><FONT face=Arial size=2>Hi
All.</FONT></SPAN></DIV>
<DIV><SPAN class=640441709-29092005><FONT face=Arial size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=640441709-29092005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640441709-29092005><FONT face=Arial size=2>I started looking
at the basic client/server demos and they work fine, EXCEPT, I seem to be
experiencing a bit of a problem.</FONT></SPAN></DIV>
<DIV><SPAN class=640441709-29092005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640441709-29092005><FONT face=Arial size=2>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
!</FONT></SPAN></DIV>
<DIV><SPAN class=640441709-29092005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640441709-29092005><FONT face=Arial size=2>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".</FONT></SPAN></DIV>
<DIV><SPAN class=640441709-29092005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640441709-29092005><FONT face=Arial size=2>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.</FONT></SPAN></DIV>
<DIV><SPAN class=640441709-29092005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640441709-29092005><FONT face=Arial size=2>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...</FONT></SPAN></DIV>
<DIV><SPAN class=640441709-29092005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640441709-29092005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640441709-29092005><FONT face=Arial size=2>Can anyone give me
a few pointers? or am I just expecting too much of my app?</FONT></SPAN></DIV>
<DIV><SPAN class=640441709-29092005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640441709-29092005><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=640441709-29092005><FONT face=Arial size=2>Cheers,
Jeremy</FONT></SPAN></DIV>
<P>
<HR>
<P></P>_______________________________________________<BR>Delphi mailing
list<BR>Delphi@ns3.123.co.nz<BR>http://ns3.123.co.nz/mailman/listinfo/delphi<BR></BLOCKQUOTE></BODY></HTML>