Article View: borland.public.cppbuilder.internet.socket
Article #3922Re: EldReadTimeOut Process Stopped
From: Colin B Maharaj
Date: Sun, 29 May 2005 00:30
Date: Sun, 29 May 2005 00:30
33 lines
1962 bytes
1962 bytes
Thanks again for helping me identify my in-efficiencies. Yes really!
Remy Lebeau (TeamB) wrote:
> "Colin B Maharaj" <noreply@myhost.com> wrote in message
> news:4295b153@newsgroups.borland.com...
>
>
>> AnsiString A = Net1->Client1->CurrentReadBuffer();
>> if (A.Length() > 0)
>> {
>> Data = Net1->Client1->ReadLn();
>
>
> Why are you reading all of the incoming data, discarding it, and then
> reading a new line? Shouldn't you be displaying the data you already
> received?
>
> void __fastcall TTcpClientReader::Execute()
> {
> while( Net1->Client1->Connected() )
> {
> Data = Net1->Client1->CurrentReadBuffer();
> if( Data.Length() > 0 )
> Synchronize(UpdateCaption);
> }
> else
> Sleep(25);
> }
>
>
> Gambit
>
>
Technical Details
Message-ID:
<42990d42$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<4295b153@newsgroups.borland.com> <4295fd62$1@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,e433419ab121c6a5 X-Google-Attributes: gid11508e,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Sat, 28 May 2005 20:30:52 -0400 From: Colin B Maharaj <noreply@myhost.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.8a4) Gecko/20040927 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.cppbuilder.internet.socket Subject: Re: EldReadTimeOut Process Stopped References: <4295b153@newsgroups.borland.com> <4295fd62$1@newsgroups.borland.com> In-Reply-To: <4295fd62$1@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 201.238.79.168 Message-ID: <42990d42$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1117326658 201.238.79.168 (28 May 2005 17:30:58 -0700) Lines: 33 Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!meganewsservers.com!feeder2.on.meganewsservers.com!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail