-
-
27 Mar 2014 18:51:38 UTC
- Distribution: IO-Async-Resolver-LibAsyncNS
- Module version: 0.01
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (1)
- Testers (21 / 55 / 0)
- Kwalitee
Bus factor: 1- 92.86% Coverage
- License: perl_5
- Activity
24 month- Tools
- Download (11.73KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Future
- IO::Async::Handle
- IO::Async::Resolver
- Net::LibAsyncNS
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
IO::Async::Resolver::LibAsyncNS
- use libasyncns forIO::Async
resolver queriesSYNOPSIS
use IO::Async::Loop; use IO::Async::Resolver::LibAsyncNS; my $loop = IO::Async::Loop->new; my $resolver = IO::Async::Resolver::LibAsyncNS->new; $loop->add( $resolver ); $resolver->getaddrinfo( host => "metacpan.org", service => "http", socktype => "stream", )->on_done( sub { my @res = @_; print "metacpan.org available at\n"; printf " family=%d addr=%v02x\n", $_->{family}, $_->{addr} for @res; })->get;
DESCRIPTION
This subclass of IO::Async::Resolver applies special handling to the
getaddrinfo_hash
andgetnameinfo
resolvers to use a Net::LibAsyncNS instance, rather than using the usual IO::Async::Function wrapper around the system resolver functions. This may lead to higher performance in some applications.It provides no additional methods, configuration options or events besides those supported by
IO::Async::Resolver
itself. It exists purely to implement the same behaviours in a more efficient manner.AUTHOR
Paul Evans <leonerd@leonerd.org.uk>
Module Install Instructions
To install IO::Async::Resolver::LibAsyncNS, copy and paste the appropriate command in to your terminal.
cpanm IO::Async::Resolver::LibAsyncNS
perl -MCPAN -e shell install IO::Async::Resolver::LibAsyncNS
For more information on module installation, please visit the detailed CPAN module installation guide.