--- AnyEvent/lib/AnyEvent.pm 2009/06/29 21:00:32 1.223 +++ AnyEvent/lib/AnyEvent.pm 2009/07/08 13:46:46 1.231 @@ -178,7 +178,7 @@ You can create an I/O watcher by calling the C<< AnyEvent->io >> method with the following mandatory key-value pairs as arguments: -C is the Perl I (I file descriptor) to watch +C is the Perl I (or a naked file descriptor) to watch for events (AnyEvent might or might not keep a reference to this file handle). Note that only file handles pointing to things for which non-blocking operation makes sense are allowed. This includes sockets, @@ -870,9 +870,9 @@ =head1 OTHER MODULES The following is a non-exhaustive list of additional modules that use -AnyEvent and can therefore be mixed easily with other AnyEvent modules -in the same program. Some of the modules come with AnyEvent, some are -available via CPAN. +AnyEvent as a client and can therefore be mixed easily with other AnyEvent +modules and other event loops in the same program. Some of the modules +come with AnyEvent, most are available via CPAN. =over 4 @@ -891,7 +891,7 @@ Provide read and write buffers, manages watchers for reads and writes, supports raw and formatted I/O, I/O queued and fully transparent and -non-blocking SSL/TLS. +non-blocking SSL/TLS (via L. =item L @@ -929,18 +929,19 @@ A non-blocking interface to gpsd, a daemon delivering GPS information. -=item L - -A non-blocking interface to the Internet Go Server protocol (used by -L). - =item L AnyEvent based IRC client module family (replacing the older Net::IRC3). -=item L +=item L -AnyEvent based XMPP (Jabber protocol) module family. +AnyEvent based XMPP (Jabber protocol) module family (replacing the older +Net::XMPP2>. + +=item L + +A non-blocking interface to the Internet Go Server protocol (used by +L). =item L @@ -955,10 +956,6 @@ Has special support for AnyEvent via L. -=item L - -The lambda approach to I/O - don't ask, look there. Can use AnyEvent. - =back =cut @@ -970,7 +967,7 @@ use Carp; -our $VERSION = 4.45; +our $VERSION = 4.801; our $MODEL; our $AUTOLOAD; @@ -1125,12 +1122,10 @@ my ($poll, $fh, $r, $w) = @_; # cygwin requires the fh mode to be matching, unix doesn't - my ($rw, $mode) = $poll eq "r" ? ($r, "<") - : $poll eq "w" ? ($w, ">") - : Carp::croak "AnyEvent->io requires poll set to either 'r' or 'w'"; + my ($rw, $mode) = $poll eq "r" ? ($r, "<") : ($w, ">"); - open my $fh2, "$mode&" . fileno $fh - or die "cannot dup() filehandle: $!,"; + open my $fh2, "$mode&", $fh + or die "AnyEvent->io: cannot dup() filehandle in mode '$poll': $!,"; # we assume CLOEXEC is already set by perl in all important cases @@ -1473,6 +1468,25 @@ The maximum number of child processes that C will create in parallel. +=item C + +The default value for the C parameter for the default DNS +resolver - this is the maximum number of parallel DNS requests that are +sent to the DNS server. + +=item C + +The file to use instead of F (or OS-specific +configuration) in the default resolver. When set to the empty string, no +default config will be used. + +=item C, C. + +When neither C nor C was specified during +L context creation, and either of these environment +variables exist, they will be used to specify CA certificate locations +instead of a system-dependent default. + =back =head1 SUPPLYING YOUR OWN EVENT MODEL INTERFACE @@ -2104,16 +2118,18 @@ Implementations: L, L, L, L, L, L, L, -L. +L, L. Non-blocking file handles, sockets, TCP clients and -servers: L, L. +servers: L, L, L. Asynchronous DNS: L. -Coroutine support: L, L, L, L, +Coroutine support: L, L, L, +L, -Nontrivial usage examples: L, L, L. +Nontrivial usage examples: L, L, +L. =head1 AUTHOR