Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

net::upnp::controlpoint(3pm) [debian man page]

Net::UPnP::ControlPoint(3pm)				User Contributed Perl Documentation			      Net::UPnP::ControlPoint(3pm)

NAME
Net::UPnP::ControlPoint - Perl extension for UPnP control point. SYNOPSIS
use Net::UPnP::ControlPoint; my $obj = Net::UPnP::ControlPoint->new(); @dev_list = $obj->search(st =>'upnp:rootdevice', mx => 3); $devNum= 0; foreach $dev (@dev_list) { $device_type = $dev->getdevicetype(); if ($device_type ne 'urn:schemas-upnp-org:device:MediaServer:1') { next; } print "[$devNum] : " . $dev->getfriendlyname() . " "; unless ($dev->getservicebyname('urn:schemas-upnp-org:service:ContentDirectory:1')) { next; } $condir_service = $dev->getservicebyname('urn:schemas-upnp-org:service:ContentDirectory:1'); unless (defined(condir_service)) { next; } %action_in_arg = ( 'ObjectID' => 0, 'BrowseFlag' => 'BrowseDirectChildren', 'Filter' => '*', 'StartingIndex' => 0, 'RequestedCount' => 0, 'SortCriteria' => '', ); $action_res = $condir_service->postcontrol('Browse', \%action_in_arg); $actrion_out_arg = $action_res->getargumentlist(); unless ($actrion_out_arg->{'Result'}) { next; } $result = $actrion_out_arg->{'Result'}; while ($result =~ m/<dc:title>(.*?)</dc:title>/sgi) { print " $1 "; } $devNum++; } DESCRIPTION
The package can search UPnP devices in the local network and get the device list of Net::UPnP::Device. METHODS
new - create new Net::UPnP::ControlPoint $ctrlPoint = Net::UPnP::ControlPoint(); Creates a new object. Read `perldoc perlboot` if you don't understand that. search - search UPnP devices @device_list = $ctrlPoint->search(); @device_list = $ctrlPoint->search( [st => $search_target], # 'upnp:rootdevice' [mx => $maximum_wait] # 3 ); Search UPnP devices and return the device list. Please see Net::UPnP::Device too. SEE ALSO
Net::UPnP::Device AUTHOR
Satoshi Konno skonno@cybergarage.org CyberGarage http://www.cybergarage.org COPYRIGHT AND LICENSE
Copyright (C) 2005 by Satoshi Konno It may be used, redistributed, and/or modified under the terms of BSD License. perl v5.10.1 2009-07-27 Net::UPnP::ControlPoint(3pm)

Check Out this Related Man Page

coherence(1)						       Python UPnP Framwork						      coherence(1)

NAME
Coherence - Is a Python UPnP framework which enabling your application to participate in digital living networks, at the moment primarily the UPnP universe. Its goal is to relieve your application from all the membership and UPnP related tasks as much as possible. The core of Coherence provides a (hopefully complete) implementation of: * a SSDP server, * a MSEARCH client, * server and client for HTTP/SOAP requests, and * server and client for Event Subscription and Notification (GENA). SYNTAX
coherence --<OPTION> : <STORE_TYPE>, url:<URL>, key:<KEY> OPTIONS
-d --daemon daemonize -v --version print version -c --configfile=<PATH> Path to config file --noconfig ignore any config file found -o --option= activate option -l --logfile=<PATH> Path to log file. --help Displays coherence options. AVAILABLE STORES
BetterLight, AmpacheStore, FlickrStore, MiroStore, ElisaPlayer, ElisaMediaStore, Gallery2Store, DVBDStore, FSStore, BuzztardPlayer, BuzztardStore, GStreamerPlayer, SimpleLight, ITVStore, SWR3Store, TrackerStore, LolcatsStore, BBCStore, MediaStore, AppleTrailerStore, LastFMStore, AxisCamStore, YouTubeStore, TEDStore, IRadioStore FILES
/home/name/.coherence ENVIRONMENT VARIABLES
COHERENCE_DEBUG=<STORE> Supplies debug information pertaining to the named store. EXAMPLES
coherence --plugin=backend:FSStore,name:MyCoherence AUTHORS
Coherence was written by Frank Scholz <coherence@beebits.net>. This man page was created by Charlie Smotherman <cjsmo@cableone.net> for Frank Scholz and the Debian Project. SEE ALSO
http://coherence.beebits.net/ Frank Scholz Thur Mar 19 2009 coherence(1)
Man Page