logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Net::Rendezvous::Publish::Service - a Rendezvous odvertised service

Author

       Richard Clamp <richardc@unixbeard.net>

Description

       A Net::Rendezvous::Publish::Service represents a service you tried to publish.

       You never create one directly, and instead are handed one by the publish method.

Methods

stop
       Stop advertising the service.

Name

         Net::Rendezvous::Publish::Service - a Rendezvous odvertised service

See Also

       Net::Rendezvous::Publish - the module this module supports

perl v5.40.1                                       2025-02-18             Net::Rendezvous::Publish::Service(3pm)

Synopsis

         use Net::Rendezvous::Publish;
         my $z = Net::Rendezvous::Publish->new;
         # publish a webserver on an odd port
         my $service = $z->publish( name => "My Webserver",
                                    type => "_http._tcp",
                                    port => 8231 );
         # handle callbacks for 10 seconds
         for (1..100) { $z->step( 0.1 ) }

         # stop publishing the service
         $service->stop;

See Also