1Net::UPnP::ActionResponUssee(r3)Contributed Perl DocumenNteatt:i:oUnPnP::ActionResponse(3)
2
3
4

NAME

6       Net::UPnP::ActionResponse - Perl extension for UPnP.
7

SYNOPSIS

9           use Net::UPnP::ControlPoint;
10
11           my $obj = Net::UPnP::ControlPoint->new();
12
13           @dev_list = $obj->search(st =>'upnp:rootdevice', mx => 3);
14
15           $devNum= 0;
16           foreach $dev (@dev_list) {
17               $device_type = $dev->getdevicetype();
18               if  ($device_type ne 'urn:schemas-upnp-org:device:MediaServer:1') {
19                   next;
20               }
21               print "[$devNum] : " . $dev->getfriendlyname() . "\n";
22               unless ($dev->getservicebyname('urn:schemas-upnp-org:service:ContentDirectory:1')) {
23                   next;
24               }
25               $condir_service = $dev->getservicebyname('urn:schemas-upnp-org:service:ContentDirectory:1');
26               unless (defined(condir_service)) {
27                   next;
28               }
29               %action_in_arg = (
30                       'ObjectID' => 0,
31                       'BrowseFlag' => 'BrowseDirectChildren',
32                       'Filter' => '*',
33                       'StartingIndex' => 0,
34                       'RequestedCount' => 0,
35                       'SortCriteria' => '',
36                   );
37               $action_res = $condir_service->postcontrol('Browse', \%action_in_arg);
38               unless ($action_res->getstatuscode() == 200) {
39                       next;
40               }
41               $actrion_out_arg = $action_res->getargumentlist();
42               unless ($actrion_out_arg->{'Result'}) {
43                   next;
44               }
45               $result = $actrion_out_arg->{'Result'};
46               while ($result =~ m/<dc:title>(.*?)<\/dc:title>/sgi) {
47                   print "\t$1\n";
48               }
49               $devNum++;
50           }
51

DESCRIPTION

53       The package is used a object of the action response.
54

METHODS

56       getstatuscode - get the status code.
57               $status_code = $actionres->getstatuscode();
58
59           Get the status code of the SOAP response.
60
61       getargumentlist - get the argument list.
62               \%argument_list = $actionres->getargumentlist();
63
64           Get the argument list of the SOAP response.
65

AUTHOR

67       Satoshi Konno skonno@cybergarage.org
68
69       CyberGarage http://www.cybergarage.org
70
72       Copyright (C) 2005 by Satoshi Konno
73
74       It may be used, redistributed, and/or modified under the terms of BSD
75       License.
76
77
78
79perl v5.34.0                      2022-01-21      Net::UPnP::ActionResponse(3)
Impressum