Net::R...Service(3pm)
π 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 π
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
- debian bookworm: libnet-rendezvous-publish-perl 0.04-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libnet-rendezvous-publish-perl 0.04-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libnet-rendezvous-publish-perl 0.04-5 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms