ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/EV/DNS.pm
Revision: 1.2
Committed: Fri Oct 26 17:43:22 2007 UTC (16 years, 7 months ago) by root
Branch: MAIN
Changes since 1.1: +9 -7 lines
Log Message:
*** empty log message ***

File Contents

# User Rev Content
1 root 1.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 root 1.2 TODO
36    
37 root 1.1 =over 4
38    
39     =back
40    
41    
42     =back
43    
44     =head1 BUGS
45    
46 root 1.2 * At least up to version 1.3e of libevent, resolve_reverse_ipv6 will
47     always crash the program with an assertion failure.
48     * use'ing this module will keep events registered so the event loop
49     will never return unless loopexit is called.
50    
51 root 1.1 =cut
52    
53     init;
54    
55     1;
56    
57 root 1.2 =head1 SEE ALSO
58    
59 root 1.1 =head1 AUTHOR
60    
61     Marc Lehmann <schmorp@schmorp.de>
62     http://home.schmorp.de/
63    
64     =cut
65