/[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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 164 - (hide annotations)
Sat Oct 27 23:06:09 2007 UTC (16 years, 6 months ago) by dpavlin
File MIME type: text/plain
File size: 624 byte(s)
since pluggable store landed in trunk add --store-path and --store-module options
1 dpavlin 28 #!/usr/bin/perl -w
2    
3     # acs.pl
4     #
5     # 06/18/07 09:19:54 CEST Dobrica Pavlinusic <dpavlin@rot13.org>
6    
7     use strict;
8    
9 dpavlin 30 use lib './lib';
10     use CWMP::Server;
11 dpavlin 57 use Getopt::Long;
12 dpavlin 28
13     my $port = 3333;
14 dpavlin 57 my $debug = 0;
15 dpavlin 164 my $store_path = './';
16     my $store_plugin = 'YAML';
17 dpavlin 28
18 dpavlin 57 GetOptions(
19     'debug+' => \$debug,
20     'port=i' => \$port,
21 dpavlin 164 'store-path=s' => \$store_path,
22     'store-plugin=s' => \$store_plugin,
23 dpavlin 57 );
24    
25 dpavlin 50 my $server = CWMP::Server->new({
26     port => $port,
27 dpavlin 150 store => {
28 dpavlin 164 module => $store_plugin,
29     path => $store_path,
30     debug => $debug,
31 dpavlin 150 },
32 dpavlin 53 debug => $debug,
33 dpavlin 84 default_queue => [ qw/
34 dpavlin 53 GetRPCMethods
35 dpavlin 57 GetParameterNames
36 dpavlin 50 / ],
37 dpavlin 57 # Reboot
38 dpavlin 50 });
39 dpavlin 28 $server->run();
40    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26