… | |
… | |
631 | |
631 | |
632 | =item L<AnyEvent::Handle> |
632 | =item L<AnyEvent::Handle> |
633 | |
633 | |
634 | Provide read and write buffers and manages watchers for reads and writes. |
634 | Provide read and write buffers and manages watchers for reads and writes. |
635 | |
635 | |
|
|
636 | =item L<AnyEvent::Socket> |
|
|
637 | |
|
|
638 | Provides various utility functions for (internet protocol) sockets, |
|
|
639 | addresses and name resolution. Also functions to create non-blocking tcp |
|
|
640 | connections or tcp servers, with IPv6 and SRV record support and more. |
|
|
641 | |
636 | =item L<AnyEvent::HTTPD> |
642 | =item L<AnyEvent::HTTPD> |
637 | |
643 | |
638 | Provides a simple web application server framework. |
644 | Provides a simple web application server framework. |
639 | |
645 | |
640 | =item L<AnyEvent::DNS> |
646 | =item L<AnyEvent::DNS> |
641 | |
647 | |
642 | Provides asynchronous DNS resolver capabilities, beyond what |
648 | Provides rich asynchronous DNS resolver capabilities. |
643 | L<AnyEvent::Util> offers. |
|
|
644 | |
649 | |
645 | =item L<AnyEvent::FastPing> |
650 | =item L<AnyEvent::FastPing> |
646 | |
651 | |
647 | The fastest ping in the west. |
652 | The fastest ping in the west. |
648 | |
653 | |
… | |
… | |
1029 | For example, to force the pure perl model (L<AnyEvent::Impl::Perl>) you |
1034 | For example, to force the pure perl model (L<AnyEvent::Impl::Perl>) you |
1030 | could start your program like this: |
1035 | could start your program like this: |
1031 | |
1036 | |
1032 | PERL_ANYEVENT_MODEL=Perl perl ... |
1037 | PERL_ANYEVENT_MODEL=Perl perl ... |
1033 | |
1038 | |
|
|
1039 | =item C<PERL_ANYEVENT_PROTOCOLS> |
|
|
1040 | |
|
|
1041 | Used by both L<AnyEvent::DNS> and L<AnyEvent::Socket> to determine preferences |
|
|
1042 | for IPv4 or IPv6. The default is unspecified (and might change, or be the result |
|
|
1043 | of autoprobing). |
|
|
1044 | |
|
|
1045 | Must be set to a comma-separated list of protocols or address families, |
|
|
1046 | current supported: C<ipv4> and C<ipv6>. Only protocols mentioned will be |
|
|
1047 | used, and preference will be given to protocols mentioned earlier in the |
|
|
1048 | list. |
|
|
1049 | |
|
|
1050 | Examples: C<PERL_ANYEVENT_PROTOCOLS=ipv4,ipv6> - prefer IPv4 over IPv6, |
|
|
1051 | but support both and try to use both. C<PERL_ANYEVENT_PROTOCOLS=ipv4> |
|
|
1052 | - only support IPv4, never try to resolve or contact IPv6 |
|
|
1053 | addressses. C<PERL_ANYEVENT_PROTOCOLS=ipv6,ipv4> support either IPv4 or |
|
|
1054 | IPv6, but prefer IPv6 over IPv4. |
|
|
1055 | |
1034 | =back |
1056 | =back |
1035 | |
1057 | |
1036 | =head1 EXAMPLE PROGRAM |
1058 | =head1 EXAMPLE PROGRAM |
1037 | |
1059 | |
1038 | The following program uses an I/O watcher to read data from STDIN, a timer |
1060 | The following program uses an I/O watcher to read data from STDIN, a timer |
… | |
… | |
1487 | probably even less useful to an attacker than PERL_ANYEVENT_MODEL). |
1509 | probably even less useful to an attacker than PERL_ANYEVENT_MODEL). |
1488 | |
1510 | |
1489 | |
1511 | |
1490 | =head1 SEE ALSO |
1512 | =head1 SEE ALSO |
1491 | |
1513 | |
|
|
1514 | Utility functions: L<AnyEvent::Util>. |
|
|
1515 | |
1492 | Event modules: L<EV>, L<EV::Glib>, L<Glib::EV>, L<Event>, L<Glib::Event>, |
1516 | Event modules: L<EV>, L<EV::Glib>, L<Glib::EV>, L<Event>, L<Glib::Event>, |
1493 | L<Glib>, L<Tk>, L<Event::Lib>, L<Qt>, L<POE>. |
1517 | L<Glib>, L<Tk>, L<Event::Lib>, L<Qt>, L<POE>. |
1494 | |
1518 | |
1495 | Implementations: L<AnyEvent::Impl::EV>, L<AnyEvent::Impl::Event>, |
1519 | Implementations: L<AnyEvent::Impl::EV>, L<AnyEvent::Impl::Event>, |
1496 | L<AnyEvent::Impl::Glib>, L<AnyEvent::Impl::Tk>, L<AnyEvent::Impl::Perl>, |
1520 | L<AnyEvent::Impl::Glib>, L<AnyEvent::Impl::Tk>, L<AnyEvent::Impl::Perl>, |
1497 | L<AnyEvent::Impl::EventLib>, L<AnyEvent::Impl::Qt>, |
1521 | L<AnyEvent::Impl::EventLib>, L<AnyEvent::Impl::Qt>, |
1498 | L<AnyEvent::Impl::POE>. |
1522 | L<AnyEvent::Impl::POE>. |
1499 | |
1523 | |
|
|
1524 | Non-blocking file handles, sockets, TCP clients and |
|
|
1525 | servers: L<AnyEvent::Handle>, L<AnyEvent::Socket>. |
|
|
1526 | |
1500 | Asynchronous DNS: L<AnyEvent::DNS>. |
1527 | Asynchronous DNS: L<AnyEvent::DNS>. |
1501 | |
1528 | |
1502 | Coroutine support: L<Coro>, L<Coro::AnyEvent>, L<Coro::EV>, L<Coro::Event>, |
1529 | Coroutine support: L<Coro>, L<Coro::AnyEvent>, L<Coro::EV>, L<Coro::Event>, |
1503 | |
1530 | |
1504 | Nontrivial usage examples: L<Net::FCP>, L<Net::XMPP2>. |
1531 | Nontrivial usage examples: L<Net::FCP>, L<Net::XMPP2>, L<AnyEvent::DNS>. |
1505 | |
1532 | |
1506 | |
1533 | |
1507 | =head1 AUTHOR |
1534 | =head1 AUTHOR |
1508 | |
1535 | |
1509 | Marc Lehmann <schmorp@schmorp.de> |
1536 | Marc Lehmann <schmorp@schmorp.de> |