🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.internet.socket
Article #4862

Re: Indy - ReadFromStack - Success!

#4862
From: Paul Machiaverna
Date: Thu, 02 Dec 2004 15:43
18 lines
1748 bytes
Gambit,

After rearranging and rewriting some code, the "non-looped" 
version of code is working.  The old OnExecute consisted of 3 parts; 1. Initialization code for application level objects, 2. loop for servicing the socket connection and 3. the cleanup code.  The new scheme has the initialization code in OnConnect, the socket connection servicing code in OnExecute and the cleanup code in OnDisconnect.  This conversion was far less painful that first envisioned.  Your explanations clarified the details!  Many, many thanks.

Paul Mac

>> There needs to be a maximum of 55 milliseconds between each call
>> to OnExecute.
>
>You will get that, as long as your own code inside the OnExecute event
>handler is running that fast to begin with.
>
>
>Gambit
>
>
Technical Details
Message-ID: <41af461f$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <41ae292f$1@newsgroups.borland.com> <41ae3c5e$3@newsgroups.borland.com> <41ae533d$1@newsgroups.borland.com> <41ae58f6$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 11508e,a8641c691be161db
X-Google-Attributes: gid11508e,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Paul Machiaverna" <paul.machiaverna@i-stat.com>
Sender: "Paul Machiaverna" <paul.machiaverna@i-stat.com>
Reply-To: "Paul Machiaverna" <paul.machiaverna@i-stat.com>
Subject: Re: Indy - ReadFromStack - Success!
Newsgroups: borland.public.cppbuilder.internet.socket
X-User-Info: 130.36.11.140     
References: <41ae292f$1@newsgroups.borland.com> <41ae3c5e$3@newsgroups.borland.com> <41ae533d$1@newsgroups.borland.com> <41ae58f6$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <41af461f$1@newsgroups.borland.com>
Date: 2 Dec 2004 08:43:11 -0700
X-Trace: newsgroups.borland.com 1102005791 207.105.83.66 (2 Dec 2004 08:43:11 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!in.100proofnews.com!in.100proofnews.com!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail