AnyEvent::Util - various utility functions.
use AnyEvent::Util; inet_aton $name, $cb->($ipn || undef);
This module implements various utility functions, mostly replacing well-known functions by event-ised counterparts.
Works almost exactly like its Socket counterpart, except that it uses a callback.
Sets the blocking state of the given filehandle (true == nonblocking, false == blocking). Uses fcntl on anything sensible and ioctl FIONBIO on broken (i.e. windows) platforms.
Marc Lehmann <schmorp@schmorp.de> http://home.schmorp.de/
To install AnyEvent, copy and paste the appropriate command in to your terminal.
cpanm
cpanm AnyEvent
CPAN shell
perl -MCPAN -e shell install AnyEvent
For more information on module installation, please visit the detailed CPAN module installation guide.