Re: Making Event work for Win32

[email protected] (Nick Ing-Simmons)
Newsgroups perl.loop
Organization via, but not speaking for : Texas Instruments Ltd.
Message-ID <[email protected]>
Graham Barr <[email protected]> writes:
>On Tue, Mar 21, 2000 at 04:10:45PM +0000, Nick Ing-Simmons wrote:
>> But when Event says "handle is readable" how is perl code going to 
>> do its IO to read it?  - right now <$fh> or even sysread($fh,...)
>> call MS stdio to do that - which will fail if Handles are in async mode.
>
>sysread() used the MS stdio layer ? If so then perl is broken. sysread
>should bypass stdio.

It thinks it is. But IIRC because numeric fd is alien to Win32
read() indexes the stdio FILE * table to get data structure which 
has the HANDLE for the thing. In any case read() is MS C runtime not 
Win32 native - and it does not work if HANDLE is in async mode.



>
>Graham.
-- 
Nick Ing-Simmons <[email protected]>
Via, but not speaking for: Texas Instruments Ltd.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.