<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<STYLE>.hmmessage P {
        PADDING-RIGHT: 0px; PADDING-LEFT: 0px; PADDING-BOTTOM: 0px; MARGIN: 0px; PADDING-TOP: 0px
}
BODY.hmmessage {
        FONT-SIZE: 10pt; FONT-FAMILY: Verdana
}
</STYLE>
<META content="MSHTML 6.00.2900.3429" name=GENERATOR></HEAD>
<BODY class=hmmessage bgColor=#ffffff>
<DIV><FONT face=Arial>Indy works blocking only</FONT></DIV>
<DIV><FONT face=Arial>Use ICS instead, they work blocking or non
blocking.</FONT></DIV>
<DIV><FONT face=Arial>check <A
href="http://www.overbyte.be">www.overbyte.be</A></FONT></DIV>
<DIV><FONT face=Arial></FONT> </DIV>
<DIV><FONT face=Arial>Paul</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=eaa603@hotmail.com href="mailto:eaa603@hotmail.com">Eric A</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A title=delphi@delphi.org.nz
href="mailto:delphi@delphi.org.nz">Delphi UsersGroup</A> </DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, December 03, 2008 8:55
PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [DUG] Indy Sockets - How to
Receive Asynchronously</DIV>
<DIV><BR></DIV>I have a situation where I need to communicate with a
communications server using Indy TCP sockets. <BR> <BR>After
sending the command the server returns an "OK" response with a second or two
to acknowledge the acceptance of the command, however the reponse from the end
device (returned via the server) may take several minutes to eventuate (or a
else the sever returns a timeout message). I need to be able to buffer
the responses, be aware of when new strings arrinve, and carry on with other
tasks. This threading aspect shouldn't be an issue as I understand
that Indy is naturally multitrheaded by design.<BR> <BR>I'm not familiar
with using the Indy sockets and since there's no "received data event" (due to
the nature of the design) I'm wondering how I capture the asynchronous
responses sensibly?<BR> <BR>Does anyone have some code to show me how to
use the Indy 10 TCPClient component in this way (for the receive part)
? Its probably pretty simple but I need to get my head around it
quickly.<BR> <BR>Thanks<BR> <BR>Eric<BR><BR>
<HR>
Start searching now <A
href="http://a.ninemsn.com.au/b.aspx?URL=http%3A%2F%2Fwww%2Eallrealestate%2Eco%2Enz%2Fcgi%2Dbin%2Frsearch%3Fa%3Dbhp%26t%3Dren%26cu%3Frsf%3Dmsnz%5Ftextlink&_t=26000&_r=REANZ_tagline&_m=EXT"
target=_new>Rental properties galore.</A>
<P>
<HR>
<P></P>_______________________________________________<BR>NZ Borland
Developers Group - Delphi mailing list<BR>Post: delphi@delphi.org.nz<BR>Admin:
http://delphi.org.nz/mailman/listinfo/delphi<BR>Unsubscribe: send an email to
delphi-request@delphi.org.nz with Subject:
unsubscribe</BLOCKQUOTE></BODY></HTML>