ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent/lib/AnyEvent/Util.pm
(Generate patch)

Comparing AnyEvent/lib/AnyEvent/Util.pm (file contents):
Revision 1.6 by root, Fri May 2 15:36:10 2008 UTC vs.
Revision 1.7 by root, Sat May 10 22:30:28 2008 UTC

86my $has_ev_adns; 86my $has_ev_adns;
87 87
88sub has_ev_adns { 88sub has_ev_adns {
89 ($has_ev_adns ||= do { 89 ($has_ev_adns ||= do {
90 my $model = AnyEvent::detect; 90 my $model = AnyEvent::detect;
91 (($model eq "AnyEvent::Impl::CoroEV" or $model eq "AnyEvent::Impl::EV")
92 && eval { local $SIG{__DIE__}; require EV::ADNS }) 91 ($model eq "AnyEvent::Impl::EV" && eval { local $SIG{__DIE__}; require EV::ADNS })
93 ? 2 : 1 # so that || always detects as true 92 ? 2 : 1 # so that || always detects as true
94 }) - 1 # 2 => true, 1 => false 93 }) - 1 # 2 => true, 1 => false
95} 94}
96 95
97=item AnyEvent::Util::inet_aton $name_or_address, $cb->($binary_address_or_undef) 96=item AnyEvent::Util::inet_aton $name_or_address, $cb->($binary_address_or_undef)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines