|
NAMENet::Rendezvous::Publish - publish Rendezvous services SYNOPSIS use Net::Rendezvous::Publish;
my $publisher = Net::Rendezvous::Publish->new
or die "couldn't make a Responder object";
my $service = $publisher->publish(
name => "My HTTP Server",
type => '_http._tcp',
port => 12345,
);
while (1) { $publisher->step( 0.01 ) }
DESCRIPTIONMETHODSnewCreates a new publisher handle publish( %definition )Returns a Net::Rendezvous::Publish::Service object. The following keys are meaningful in the service definition hash.
step( $seconds )Spend at most $seconds seconds handling network events and updating internal state. At some point I may learn enough of the mDNS protocol to write a pure-perl responder. That'll be nifty. AUTHORRichard Clamp <richardc@unixbeard.net> COPYRIGHTCopyright 2004, 2005, 2006, 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 ALSONet::Rendezous - for service browsing. Net::Rendezvous::Publish::Backend::* - you'll need one of these to talk to your local mDNS responder. POD ERRORSHey! The above document had some coding errors, which are explained below:
|