in reply to [Win32] IO::Select's can_read method
select (and IO::Select) only work on Sockets, not on pipes or filehandles on Windows.
As far as I have seen, it is not easy to conveniently retrofit select onto Windows filehandles, because asynchronous Windows IO seems mostly to be done using IO Completion Ports. These allow you to asynchronously read in data, but they don't allow you to check whether there actually is data available to be read. The same problem occurs when using threads.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: [Win32] IO::Select's can_read method
by syphilis (Archbishop) on Dec 09, 2011 at 09:42 UTC | |
by BrowserUk (Patriarch) on Dec 09, 2011 at 10:39 UTC | |
by Corion (Patriarch) on Dec 09, 2011 at 11:01 UTC | |
by patcat88 (Deacon) on Dec 09, 2011 at 17:26 UTC | |
by syphilis (Archbishop) on Dec 10, 2011 at 06:46 UTC | |
| |
by BrowserUk (Patriarch) on Dec 09, 2011 at 11:11 UTC |