🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: ReadFile/WriteFile Timing

#12518
From: JD
Date: Mon, 01 Dec 2003 09:59
17 lines
1401 bytes
"Nicholas Gessler" <gessler@ucla.edu> wrote:
> [...] I want to say:
> WriteFile(...)          // to tell the peripheral to send me data
> while (!readytosend);   // wait until the peripheral is ready
> ReadFile(...)           // read what the peripheral says

You may want to consider using a seperate thread for this
process. That way the main thread is left open to respond to
the user if he/she decides to cancel the operation.

> Where can I find info on RTS/CTS or DTR/DSP?

Look up EscapeCommFunction and related functions in the
win32.hlp file.

~ JD
Technical Details
Message-ID: <3fcb1f18$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fcac3ca$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,f704ae3bd2965d0
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-12-01 03:09:10 PST
From: "JD" <nospam@nospam.com>
Sender: "JD" <nospam@nospam.com>
Reply-To: "JD" <nospam@nospam.com>
Subject: Re: ReadFile/WriteFile Timing
Newsgroups: borland.public.cppbuilder.nativeapi
X-User-Info: 172.148.36.185     
References:  <3fcac3ca$1@newsgroups.borland.com>
NNTP-Posting-Host: 207.105.83.66
Message-ID: <3fcb1f18$1@newsgroups.borland.com>
Date: 1 Dec 2003 02:59:36 -0700
X-Trace: newsgroups.borland.com 1070276376 207.105.83.66 (1 Dec 2003 02:59:36 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail