ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/EV/DNS.pm
Revision: 1.1
Committed: Fri Oct 26 16:50:05 2007 UTC (16 years, 7 months ago) by root
Branch: MAIN
Log Message:
looks good

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     =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