dk has asked for the wisdom of the Perl Monks concerning the following question:
The following simple code crashes on win32:
I can see that it crashes because of blocking=0, and I can see that IO::Socket::INET itself is possibly not to blame, because the same code works fine on unix. I can also see that even IO.xs is ok, because it calls fnctl() which, seems to me, is present on win32. But I don't see how come that this doesn't work? Is that a bug? a feature? Please give me clues as I have none.use IO::Socket::INET; IO::Socket::INET-> new( Listen => 5, LocalPort => 10000, Blocking => 0, ReuseAddr => 1, ) or die "error:$!";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: IO::Socket::INET on win32
by BrowserUk (Patriarch) on Dec 12, 2007 at 06:24 UTC | |
by dk (Chaplain) on Dec 13, 2007 at 19:37 UTC | |
by BrowserUk (Patriarch) on Dec 13, 2007 at 23:06 UTC | |
by dk (Chaplain) on Dec 14, 2007 at 00:02 UTC |