/[cwmp]/google/trunk/bin/acs.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /google/trunk/bin/acs.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

google/bin/acs.pl revision 50 by dpavlin, Tue Jun 19 21:29:04 2007 UTC google/trunk/bin/acs.pl revision 172 by dpavlin, Sun Oct 28 15:43:07 2007 UTC
# Line 8  use strict; Line 8  use strict;
8    
9  use lib './lib';  use lib './lib';
10  use CWMP::Server;  use CWMP::Server;
11    use Getopt::Long;
12    
13  my $port = 3333;  my $port = 3333;
14    my $debug = 0;
15    my $store_path = './';
16    my $store_plugin = 'YAML';
17    
18    GetOptions(
19            'debug+' => \$debug,
20            'port=i' => \$port,
21            'store-path=s' => \$store_path,
22            'store-plugin=s' => \$store_plugin,
23    );
24    
25  my $server = CWMP::Server->new({  my $server = CWMP::Server->new({
26          port => $port,          port => $port,
27          debug => 1,          store => {
28          queue => [ qw/                  module => $store_plugin,
29                  GetRPCMethods                    path => $store_path,
30          / ],                  debug => $debug,
31            },
32            debug => $debug,
33            default_queue => [
34                    'GetRPCMethods',
35                    [ 'GetParameterNames', 'InternetGatewayDevice.DeviceInfo.SerialNumber', 0 ],
36                    [ 'GetParameterNames', 'InternetGatewayDevice.DeviceInfo.', 1 ],
37                    [ 'GetParameterValues',
38                            'InternetGatewayDevice.DeviceInfo.SerialNumber',
39                            'InternetGatewayDevice.DeviceInfo.VendorConfigFile.',
40                    ],
41    #               'Reboot',
42            ],
43  });  });
44  $server->run();  $server->run();
45    

Legend:
Removed from v.50  
changed lines
  Added in v.172

  ViewVC Help
Powered by ViewVC 1.1.26