ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV-ADNS/ADNS.pm
(Generate patch)

Comparing EV-ADNS/ADNS.pm (file contents):
Revision 1.2 by root, Sat Dec 1 21:29:08 2007 UTC vs.
Revision 1.4 by root, Sat Dec 1 22:36:10 2007 UTC

2 2
3EV::ADNS - 3EV::ADNS -
4 4
5=head1 SYNOPSIS 5=head1 SYNOPSIS
6 6
7 use EV;
7 use EV::ADNS; 8 use EV::ADNS;
8 9
9 EV::ADNS::submit "example.com", EV::ADNS::r_a, 0, sub { 10 EV::ADNS::submit "example.com", EV::ADNS::r_a, 0, sub {
10 my ($status, $expires, @a) = @_; 11 my ($status, $expires, @a) = @_;
11 warn $a[0]; # "127.13.166.3" etc. 12 warn $a[0]; # "127.13.166.3" etc.
12 }; 13 };
14
15 EV::loop;
13 16
14=head1 DESCRIPTION 17=head1 DESCRIPTION
15 18
16This is a simple interface to libadns (asynchronous dns) that 19This is a simple interface to libadns (asynchronous dns) that
17integrates well and automatically into the EV event loop. The 20integrates well and automatically into the EV event loop. The
140 143
141use Carp (); 144use Carp ();
142use EV (); 145use EV ();
143 146
144BEGIN { 147BEGIN {
145 $VERSION = '0.1'; 148 $VERSION = '0.2';
146 149
147 require XSLoader; 150 require XSLoader;
148 XSLoader::load (EV::ADNS, $VERSION); 151 XSLoader::load (EV::ADNS, $VERSION);
149} 152}
150 153

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines