[JDEV] Net::Jabber vs. Jabber::Connection?
Ryan Eatmon
reatmon at jabber.org
Sun Jun 2 11:09:25 CDT 2002
DJ,
Uh.... I think you're wrong on that...
Here's an excerpt from the IO::Select can_read() documentation:
http://www.perl.com/doc/manual/html/lib/IO/Select.html
can_read ( [ TIMEOUT ] )
Return an array of handles that are ready for reading. TIMEOUT is the
maximum amount of time to wait before returning an empty list. If
TIMEOUT is not given and any handles are registered then the call will
block.
DJ Adams wrote:
> On Sat, Jun 01, 2002 at 04:10:51PM -0500, Ryan Eatmon wrote:
>
>>You could try Process(0) to wait 0 seconds (ie. exit immediatly). As
>>for being odd that Process() blocks, this is the same behavior as many
>>other Perl modules (IO:Select comes to mind first). I would argue that
>>Jabber::Connection is the odd man out.
>>
>
> Why?
>
> J::C's process() uses IO::Select (specifically the can_read() function).
> The behaviour is the same - it blocks for up to X seconds waiting for
> something to be available. Calling process() (i.e. with no explicit
> value) just makes the function assume 0 seconds.
>
>
> Cheers
> dj
> _______________________________________________
> jdev mailing list
> jdev at jabber.org
> http://mailman.jabber.org/listinfo/jdev
>
More information about the JDev
mailing list