Florian Ragwitz > Net-SSDP-0.02 > Net::SSDP

Download:
Net-SSDP-0.02.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.02   Source  

NAME ^

Net::SSDP - Simple Service Discovery Protocol implementation

SYNOPSIS ^

  use Glib;
  use Net::SSDP;

  my $mainloop = Glib::MainLoop->new;
  my $client = Net::SSDP::Client->new($mainloop->get_context);

  my $browser = Net::SSDP::ResourceBrowser->new($client);

  $browser->signal_connect('resource-available' => sub {
      my ($browser, $usn, $locations) = @_;
      print "Resource $usn became available";
  });

  $browser->signal_connect('resource-unavailable' => sub {
      my ($browser, $usn) = @_;
      print "Resource $usn became unavailable";
  });

  $browser->set_active(1);

  $mainloop->run;

DESCRIPTION ^

This module is an implementation of the Simple Service Discovery Protocol (SSDP). It allows network clients to discover and announce network services. SSDP is the basis of Universal Plug and Play (UPnP).

SEE ALSO ^

Net::SSDP::Client

Net::SSDP::ResourceBrowser

Net::SSDP::ResourceGroup

AUTHOR ^

Florian Ragwitz <rafl@debian.org>

COPYRIGHT AND LICENSE ^

Copyright (c) 2009 Florian Ragwitz

This is free software, licensed under:

  The GNU Lesser General Public License Version 2.1, February 1999
syntax highlighting: