Skip Menu |

This queue is for tickets about the Net-Rendezvous CPAN distribution.

Report information
The Basics
Id: 7940
Status: resolved
Priority: 0/
Queue: Net-Rendezvous

People
Owner: Nobody in particular
Requestors: SAPER [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Adding services enumeration
Hello, I sent you a patch to add this feature to Net::Rendezvous twice in the past two months without getting any answer, therefore I post it here for public review. To apply this patch, untar Net-Rendezvous-0.86.tar.gz from the CPAN, then: $ cd Net-Rendezvous-0.86 $ patch -p1 <../Net-Rendezvous-0.86+004.patch then build the module as usual: $ perl Makefile.PL && make && make test What does this patch do: - it modifies lib/Net/Rendezvous.pm to implement services enumeration. This is mainly done in the enumerate_services() function but I also added an instance() accessor to get/set the instance name of a service, and I modified others functions in order for them to accept an instance name. I also modified dns_refresh() and mdns_refresh so that they don't try to fetch information when _no_fetch is set. Of course, the documentation is included :-) - it adds t/4-enum_services.t and updates t/2-entry.t and t/3-enterprise.t - it adds demo/enum.pl which is a demonstration of the services enumeration. Running this program against zeroconf.org gives a nice example. - it adds a Build.PL, and updates Makefile.PL, MANIFEST and META.yml accordingly I have successfully tested this patch under the following systems: - Perl 5.6.0 / Mac OS X 10.2.6 - Perl 5.8.1rc4 / Mandrake Linux 9.2 - Perl 5.8.3 / Mandrake Linux 10.0 Best Regards, Sébastien Aperghis-Tramoni

Message body is not shown because it is too large.