Article View: borland.public.cppbuilder.internet.socket
Article #1053Re: Indy 10 application design
From: Old Wolf
Date: Tue, 12 Jun 2007 00:30
Date: Tue, 12 Jun 2007 00:30
17 lines
2042 bytes
2042 bytes
On Jun 12, 4:35 am, "Remy Lebeau \(TeamB\)" <no.s...@no.spam.com> wrote: > "Old Wolf" <oldw...@inspire.net.nz> wrote: > > [I'm making a concentrating router] > > I would suggest using two dedicated threads with the TIdTCPClient. > Have one thread contain a queue of outbound requests and continously > sends thems them when available, and another thread that continuously > reads the inbound responses that arrive. That way, when your > TIdTCPServer receives a request, it can pass it on to the queue thread > and then continue on with its own things, and then the response thread > can pass the response back to the TIdTCPServer once it becomes > available. Ok, sounds like good advice. (Thanks to Bob too). Do I make my threads descend from TThread, or from TIdThread ?
Technical Details
Message-ID:
<1181608221.077134.252370@g37g2000prf.googlegroups.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g37g2000prf.googlegroups.com!not-for-mailReferences:
<466cbb16$1@newsgroups.borland.com> <466d7a39@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,5214d7fac32891ae X-Google-Attributes: gid11508e,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: arc1-ca.pugleaf.net!g2news1.google.com!postnews.google.com!g37g2000prf.googlegroups.com!not-for-mail From: Old Wolf <oldwolf@inspire.net.nz> Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: Indy 10 application design Date: Mon, 11 Jun 2007 17:30:21 -0700 Organization: http://groups.google.com Lines: 19 Message-ID: <1181608221.077134.252370@g37g2000prf.googlegroups.com> References: <466cbb16$1@newsgroups.borland.com> <466d7a39@newsgroups.borland.com> NNTP-Posting-Host: 202.27.210.143 Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Trace: posting.google.com 1181608221 3868 127.0.0.1 (12 Jun 2007 00:30:21 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 12 Jun 2007 00:30:21 +0000 (UTC) In-Reply-To: <466d7a39@newsgroups.borland.com> User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8.1.4) Gecko/20070515 Firefox/2.0.0.4,gzip(gfe),gzip(gfe) Complaints-To: groups-abuse@google.com Injection-Info: g37g2000prf.googlegroups.com; posting-host=202.27.210.143; posting-account=B0OSKw0AAAAluRNg4gL33tId-nDQmsaF