in reply to Re: Non Blocking input on Win32 platforms
in thread Non Blocking input on Win32 platforms
It's worth mentioning that select only works on sockets under win32. Win32::Socketpair, provides a work around.
I've been working with Win32::Socketpair and I ran into a few snags. I haven't had time to contact the author with a proper bug report yet, but it is important to know that because winopen2 uses system(1, ...) to spawn child processes, you can only launch 64 processes under windows before it stops working. It is a simple matter to change the code to use Win32::Process::Create to spawn children. The other snag that I just encountered yesterday and haven't found a work around for yet is that using PerlApp 6 to bind your executables as GUI programs, means that STDIO to any children gets messed up in some mysterious way.
With those caveats, IO::Select makes it easy to do non-blocking IO.
TGI says moo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Non Blocking input on Win32 platforms
by BrowserUk (Patriarch) on Nov 01, 2008 at 04:10 UTC | |
by TGI (Parson) on Nov 01, 2008 at 17:35 UTC |