Net::R...Service(3pm)

πŸ“¦
version 0.04 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu noble

πŸ’– Net::R...Service(3pm) πŸ’–

okay bestie, this is part of the User Contributed Perl Documentation (the perl v5.34.0 era, 2022-06-30 if you're keeping receipts) and it's literally the little service object that goes "hey everyone, I exist!!" on your network ✨


✨ NAME ✨

Net::Rendezvous::Publish::Service β€” a Rendezvous odvertised service πŸŽ€

(not me leaving the typo in, it's literally what it says, and honestly? iconic. we keep it.)


🌸 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;

so like. you make a Net::Rendezvous::Publish, you publish a service with a name, a type and a port (8231 here, which is, as the comment says, an odd port πŸ™ˆ), then you gotta keep stepping β€” for (1..100) { $z->step( 0.1 ) } is you handling callbacks for 10 seconds, one 0.1 at a time, and when you're done you stop it. no cap πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

a Net::Rendezvous::Publish::Service is the lil representation of a service you tried to publish. that's it, that's the vibe.

and listen β€” you never create one directly. do not. the publish method hands you one, and that's the whole story. you're not the main character here, the publish method is. periodt πŸ‘‘


πŸ’… METHODS πŸ’…

🌈 stop

stop advertising the service.

that's the entire method. one job, does it flawlessly. slay.


πŸ‘‘ 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 πŸ’œ

and that's the whole page, bestie!! πŸ’– shoutout to perl v5.34.0, dated 2022-06-30, and to Net::R...Service(3pm) β€” the name got truncated in the header but we all know what she is. go publish something cute. mwah πŸ§šπŸ’‹

πŸ“¦ where this page comes from