in reply to Checking whether or not IO::Socket::accept will block

Well, somehow POE manages to do it just fine. You can either use POE (highly recommended if you're wanting to write multi-threading apps in one process/thread) or reverse-engineer the POE code to see how it is done.

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.

  • Comment on •Re: Checking whether or not IO::Socket::accept will block

Replies are listed 'Best First'.
Re: •Re: Checking whether or not IO::Socket::accept will block
by dug (Chaplain) on Feb 17, 2004 at 05:59 UTC
    I'm probably just a little slow, but it took me a while to pick up on POE. I do like POE, but for simple projects that need a bit of multiplexed, non-blocking IO, I'd just use IO::Poll or IO::Select (which POE will probably optimize to internally).

    That said, I love abstraction, and POE has some good abstractions in my book. It just depends on your task.

    -- dug