Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

Hi everyone!

Is there any way I can do a non-blocking read from a socket under Win32 ?
perlipc gives an example with alarm() but, as we all know, it does not work on Win32...

Thanks.

PS: Cygwin is not an option in my case.

Replies are listed 'Best First'.
Re: Timing out on sysread()
by chip (Curate) on Dec 14, 2001 at 23:40 UTC
    I should think that select() would let you do a time-limited wait for incoming data.

        -- Chip Salzenberg, Free-Floating Agent of Chaos