1 |
=head1 NAME |
2 |
|
3 |
EV::DNS - perl interface to libevent's evdns module |
4 |
|
5 |
=head1 SYNOPSIS |
6 |
|
7 |
use EV::DNS; |
8 |
|
9 |
EV::DNS::resolve_reverse +(Socket::inet_aton "129.13.162.95"), 0, sub { |
10 |
my ($result, $type, $ttl, @ptrs) = @_; |
11 |
warn "resolves to @ptrs"; |
12 |
}; |
13 |
|
14 |
EV::DNS::resolve_ipv4 "www.goof.com", 0, sub { |
15 |
my ($result, $type, $ttl, @ptrs) = @_; |
16 |
warn "resolves to " . Socket::inet_ntoa $ptrs[0] |
17 |
if @ptrs; |
18 |
}; |
19 |
|
20 |
=head1 DESCRIPTION |
21 |
|
22 |
This module provides an interface to libevent's evdns module, see |
23 |
(L<http://monkey.org/~provos/libevent/>). |
24 |
|
25 |
=cut |
26 |
|
27 |
package EV::DNS; |
28 |
|
29 |
use strict; |
30 |
|
31 |
use EV; |
32 |
|
33 |
=head1 FUNCTIONAL INTERFACE |
34 |
|
35 |
=over 4 |
36 |
|
37 |
=back |
38 |
|
39 |
|
40 |
=head1 OBJECT-ORIENTED INTERFACE |
41 |
|
42 |
The object oriented interface lets you configure your own encoding or |
43 |
decoding style, within the limits of supported formats. |
44 |
|
45 |
=over 4 |
46 |
|
47 |
=back |
48 |
|
49 |
=head1 BUGS |
50 |
|
51 |
=cut |
52 |
|
53 |
init; |
54 |
|
55 |
1; |
56 |
|
57 |
=head1 AUTHOR |
58 |
|
59 |
Marc Lehmann <schmorp@schmorp.de> |
60 |
http://home.schmorp.de/ |
61 |
|
62 |
=cut |
63 |
|