🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: rs232 under XP

#10549
From: Benjamin Pratt
Date: Fri, 02 Apr 2004 17:56
31 lines
2244 bytes
Reading and writing to the same handle _simultaneously_ is only possible
with overlapped I/O. Meaning reading/writing to the handle before a previous
read/write has completed. However, you can preform a read, then a write,
etc. so long as the previous operation has completed.
This is the crux of the problem that you were initially experiencing. The
WaitCommEvent had not completed yet, so the subsequent write would block
until WaitCommEvent finished. Now that you are using overlapped I/O, you can
use the same handle _simultaneously_ for two different operations.


"Martin" <anonymous@anonym.net> wrote in message
news:406d220c@newsgroups.borland.com...
> Hello Michel,
>
> I have BCB 5 and search the MS SDK that came with it.
>
> Under CreateFile, where they explain details about FILE_FLAG_OVERLAPPED is
> the following:
>
> This flag also enables more than one operation to be performed
> simultaneously with the handle (a simultaneous read and write operation,
for
> example).
>
> To me this means that it is not possible without overlap.
>
>
>
> Martin
>
>
Technical Details
Message-ID: <406da85a$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <40693a3f@newsgroups.borland.com> <4069a26a@newsgroups.borland.com> <4069c1f9$1@newsgroups.borland.com> <406a964f$1@newsgroups.borland.com> <406b782e$1@newsgroups.borland.com> <406be6c2$1@newsgroups.borland.com> <406c0fcd$1@newsgroups.borland.com> <406d220c@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,8913094e963c267d
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2004-04-02 10:10:21 PST
From: "Benjamin Pratt" <benjamin.pratt.getridofthis@verizon.net>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <40693a3f@newsgroups.borland.com> <4069a26a@newsgroups.borland.com> <4069c1f9$1@newsgroups.borland.com> <406a964f$1@newsgroups.borland.com> <406b782e$1@newsgroups.borland.com> <406be6c2$1@newsgroups.borland.com> <406c0fcd$1@newsgroups.borland.com> <406d220c@newsgroups.borland.com>
Subject: Re: rs232 under XP
Date: Fri, 2 Apr 2004 09:56:53 -0800
Lines: 33
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 24.130.93.201
Message-ID: <406da85a$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1080928346 24.130.93.201 (2 Apr 2004 09:52:26 -0800)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!news.glorb.com!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail