🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: select() on serial port

#6104
From: Eelke
Date: Thu, 09 Jun 2005 06:44
19 lines
1956 bytes
Patrick Rotsaert wrote:
> Sounds promising!
> Do you know of any good examples on overlapped IO, events and such. 
> Reading the microsoft help does not make it any easier ;-)
> 
Most of my knowledge comes from the book Advanced Win32 Programming from 
Microsoft Press and I also have had a course on concurrent programming 
(thought we used NeXT for that course) so I can't give a link. I have 
never used overlapped IO myself but I can give you a quick idea of how 
to use Event  objects.

An event object is an object that can have two states signaled or 
non-signaled. A thread can use wait functions on an Event object to wait 
until the object goes into the signaled state. In case of the use of 
events with overlapped IO and sockets windows will put the event in the 
signalled state when certain conditions are met like the overlapped IO 
transfer is completed or data is available for reading on a socket.

Eelke
Technical Details
Message-ID: <42a7e509$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail
References: <42a6eb15$3@newsgroups.borland.com> <42a6f1f5$1@newsgroups.borland.com> <42a6fc95$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,be0dfdb43d2d029e
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Thu, 09 Jun 2005 08:44:30 +0200
From: Eelke <e.klein@mplussoftware.nl>
User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: select() on serial port
References: <42a6eb15$3@newsgroups.borland.com> <42a6f1f5$1@newsgroups.borland.com> <42a6fc95$1@newsgroups.borland.com>
In-Reply-To: <42a6fc95$1@newsgroups.borland.com>
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 81.58.1.162
Message-ID: <42a7e509$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1118299401 81.58.1.162 (8 Jun 2005 23:43:21 -0700)
Lines: 19
Path: arc1-ca.pugleaf.net!g2news1.google.com!news4.google.com!news.glorb.com!news-out.nntp.be!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail