NAME
EV::DNS - perl interface to libevent's evdns module
SYNOPSIS
use EV::DNS;
EV::DNS::resolve_reverse +(Socket::inet_aton "129.13.162.95"), 0, sub {
my ($result, $type, $ttl, @ptrs) = @_;
warn "resolves to @ptrs";
};
EV::DNS::resolve_ipv4 "www.goof.com", 0, sub {
my ($result, $type, $ttl, @ptrs) = @_;
warn "resolves to " . Socket::inet_ntoa $ptrs[0]
if @ptrs;
};
DESCRIPTION
This module provides an interface to libevent's evdns module, see (http://monkey.org/~provos/libevent/).
FUNCTIONAL INTERFACE
TODO
BUGS
* At least up to version 1.3e of libevent, resolve_reverse_ipv6 will
always crash the program with an assertion failure.
* use'ing this module will keep events registered so the event loop
will never return unless loopexit is called.
SEE ALSO
AUTHOR
Marc Lehmann <schmorp@schmorp.de>
http://home.schmorp.de/