AnyEvent-mDNS
view release on metacpan or search on metacpan
0.06 Fri Dec 28 19:50:14 PST 2012
- Use AnyEvent::Handle::UDP to make it actually work again (Leon Timmermans)
- Fixed the parsing of DNS unpack result
0.05 Mon Jul 20 17:00:51 PDT 2009
- Revert the changes made in 0.04 -- it's buggy
0.04 Mon Jul 20 16:47:50 PDT 2009
- Do not use AnyEvent::Handle to favor AnyEvent->io
- Runs its own timer to emulate UDP timeout (unless timeout is set to 0)
0.03 Fri Jul 17 17:17:40 PDT 2009
- Changed discover() API parameters to work more like AnyEvent standards
0.02 Wed Jul 15 17:34:44 PDT 2009
- Deduplicate found services
0.01 Wed Jul 15 13:06:28 2009
- original version
lib/AnyEvent/mDNS.pm view on Meta::CPAN
another callback with the key C<on_found>, then each service will be
passed to the callback as it's found.
# receive service as it's found (faster)
AnyEvent::mDNS::discover $proto, on_found => sub {
my $service = shift;
# ...
}, $cv;
$cv->recv;
You can obviously write your own AnyEvent timer loop to run this mDNS
query from time to time with smart interval (See the Multicast DNS
Internet Draft for details), to keep the discovered list up-to-date.
=back
=head1 AUTHOR
Tatsuhiko Miyagawa E<lt>miyagawa@bulknews.netE<gt>
=head1 LICENSE
( run in 1.089 second using v1.01-cache-2.11-cpan-49f99fa48dc )