in reply to Re^2: [Win32] IO::Select's can_read method
in thread [Win32] IO::Select's can_read method
Unix select behaviour for pipes could be emulated on Win32 using PeekNamedPipe().
Although the function name suggests that this is design for use with named pipes, it also works with anonymous pipes:
hNamedPipe in
A handle to the pipe. This parameter can be a handle to a named pipe instance, as returned by the CreateNamedPipe or CreateFile function, or it can be a handle to the read end of an anonymous pipe, as returned by the CreatePipe function. The handle must have GENERIC_READ access to the pipe.
Similarly, can_read() could be implemented for files using Alertable IO, and callbacks placed on the Asynchronous Procedure Queue.
Implementing either would require a substantial rewrite of win32_select() in win32sck.c
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: [Win32] IO::Select's can_read method
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 10, 2011 at 07:40 UTC | |
by syphilis (Archbishop) on Dec 10, 2011 at 08:06 UTC | |
by BrowserUk (Patriarch) on Dec 09, 2011 at 11:11 UTC |