🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #6384

Re: Response not in que?

#6384
From: Bob Gonder
Date: Thu, 12 May 2005 01:16
17 lines
1920 bytes
Neil P. wrote:

>             memset(&comtime, 0, sizeof(comtime));
>             comtime.ReadIntervalTimeout = MAXDWORD;
>             SetCommTimeouts(hComm, &comtime);

That is probably wrong.
Before you do a Set, do GetCommTimeouts() to see what the default
values are.

Just a guess as to what might work for you:
	{ 10, 2, 100, 2, 100 }
Wait 100 ms for the first char Plus 2 ms per char.
Allow up to 10 ms between chars.

Then adjust your WaitFor timeout to be a bit longer:
	WaitForSingleObject( ehRead, 120+2*iExpected )
Technical Details
Message-ID: <kra581hne1rn42rvah1o7phavjk840m5e6@4ax.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!txtfeed1.tudelft.nl!130.161.131.117.MISMATCH!tudelft.nl!txtfeed2.tudelft.nl!newsfeed.multikabel.nl!gatel-ffm!gatel-ffm!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <427fa27e@newsgroups.borland.com> <vugv711ona1kdbekucqqkg6csqkcd4agrd@4ax.com> <427fca8b$1@newsgroups.borland.com> <427fce92$1@newsgroups.borland.com> <427fd0af@newsgroups.borland.com> <427ff371$1@newsgroups.borland.com> <42820cad$1@newsgroups.borland.com> <0fd4815hque964clpuqu52okn4rsq7n2fh@4ax.com> <428264a9$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,369fa724017da622
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Bob Gonder <notbg@notmindspring.invalid>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: Response not in que?
Date: Wed, 11 May 2005 18:16:46 -0700
Organization: MindSpring Enterprises, Inc.
Reply-To: notbg@notmindspring.invalid
Message-ID: <kra581hne1rn42rvah1o7phavjk840m5e6@4ax.com>
References: <427fa27e@newsgroups.borland.com> <vugv711ona1kdbekucqqkg6csqkcd4agrd@4ax.com> <427fca8b$1@newsgroups.borland.com> <427fce92$1@newsgroups.borland.com> <427fd0af@newsgroups.borland.com> <427ff371$1@newsgroups.borland.com> <42820cad$1@newsgroups.borland.com> <0fd4815hque964clpuqu52okn4rsq7n2fh@4ax.com> <428264a9$1@newsgroups.borland.com>
X-Newsreader: Forte Agent 1.93/32.576 English (American)
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 67.77.206.29
X-Trace: newsgroups.borland.com 1115860602 67.77.206.29 (11 May 2005 18:16:42 -0700)
Lines: 20
Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!txtfeed1.tudelft.nl!130.161.131.117.MISMATCH!tudelft.nl!txtfeed2.tudelft.nl!newsfeed.multikabel.nl!gatel-ffm!gatel-ffm!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail