-
-
28 Jan 2006 08:51:40 UTC
- Distribution: Net-Rendezvous-Publish
- Module version: 0.04
- Source (raw)
- Browse (raw)
- Changes
- How to Contribute
- Issues (2)
- Testers (3220 / 1 / 10)
- Kwalitee
Bus factor: 0- 45.00% Coverage
- License: perl_5
- Perl: v5.6.0
- Activity
24 month- Tools
- Download (3.04KB)
- MetaCPAN Explorer
- Permissions
- Subscribe to distribution
- Permalinks
- This version
- Latest version
- Dependencies
- Class::Accessor::Lvalue
- Module::Pluggable
- and possibly others
- Reverse dependencies
- CPAN Testers List
- Dependency graph
NAME
Net::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 ) }
DESCRIPTION
METHODS
new
Creates a new publisher handle
publish( %definition )
Returns a Net::Rendezvous::Publish::Service object. The following keys are meaningful in the service definition hash.
- name
-
A descriptive name for the service.
- type
-
The type of service. This is string of the form _service._protocol.
- port
-
The port on which you're advertising the service. If you're not using a port (and instead just using mDNS as a way of propogating other service information) it's common practice to use 9 (the discard service)
- domain
-
The domain in which to advertise a service. Defaults to
local.
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.
AUTHOR
Richard Clamp <richardc@unixbeard.net>
COPYRIGHT
Copyright 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 ALSO
Net::Rendezous - for service browsing.
Net::Rendezvous::Publish::Backend::* - you'll need one of these to talk to your local mDNS responder.
1 POD Error
The following errors were encountered while parsing the POD:
- Around line 109:
Unknown directive: =head
Module Install Instructions
To install Net::Rendezvous::Publish, copy and paste the appropriate command in to your terminal.
cpanm Net::Rendezvous::Publish
perl -MCPAN -e shell install Net::Rendezvous::Publish
For more information on module installation, please visit the detailed CPAN module installation guide.