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

Comparing cvsroot/EV-ADNS/ADNS.pm (file contents):
Revision 1.2 by root, Sat Dec 1 21:29:08 2007 UTC vs.
Revision 1.3 by root, Sat Dec 1 21:29:44 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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines