Re: when working with files under POE, shouldn't IO::AIO be used?

2006-12-13 Thread Rocco Caputo
Although Marc Lehmann doesn't come out and say so, IO::AIO provides two features that support its use from POE in a couple different ways. It exposes a file descriptor, which can be used to notify select-like loops when AIO operations are complete. For example: # POE integration open

Re: when working with files under POE, shouldn't IO::AIO be used?

2006-12-13 Thread David Davis
Here is my working example: http://svn.xantus.org/shortbus/trunk/cometd-perl/lab/aio.pl David On 12/13/06, Rocco Caputo [EMAIL PROTECTED] wrote: Although Marc Lehmann doesn't come out and say so, IO::AIO provides two features that support its use from POE in a couple different ways. It

Re: when working with files under POE, shouldn't IO::AIO be used?

2006-12-11 Thread aninnymouse
According to the documentation that only does buffered I/O. There are many other file operations that can block, which IO::AIO deals with- file opening and creation, closing and deletion, link/symlink, stat, rename, etc. Does POE handle those as well? Matt Sickler wrote: why use IO::AIO when