NAME

AnyEvent::Util - various utility functions.

SYNOPSIS

use AnyEvent::Util;

inet_aton $name, $cb->($ipn || undef);

DESCRIPTION

This module implements various utility functions, mostly replacing well-known functions by event-ised counterparts.

AnyEvent::Util::inet_aton $name_or_address, $cb->($binary_address_or_undef)

Works almost exactly like its Socket counterpart, except that it uses a callback.

AnyEvent::Util::fh_nonblocking $fh, $nonblocking

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.

AUTHOR

Marc Lehmann <schmorp@schmorp.de>
http://home.schmorp.de/