Net::Rendezvous::Publish::Service.3pm

Langue: en

Autres versions - même langue

Version: 2010-06-08 (ubuntu - 24/10/10)

Section: 3 (Bibliothèques de fonctions)

NAME

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

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;
 
 

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.

AUTHOR

Richard Clamp <richardc@unixbeard.net> Copyright 2004, Richard Clamp. All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

SEE ALSO

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