/[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 78 - (hide annotations)
Fri Jun 22 14:16:43 2007 UTC (16 years, 11 months ago) by dpavlin
Original Path: google/bin/acs.pl
File MIME type: text/plain
File size: 501 byte(s)
added default store_path to state.db
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 78 my $store_path = 'state.db';
16 dpavlin 28
17 dpavlin 57 GetOptions(
18     'debug+' => \$debug,
19     'port=i' => \$port,
20 dpavlin 78 'store-path=s' => \$store_path,
21 dpavlin 57 );
22    
23 dpavlin 50 my $server = CWMP::Server->new({
24     port => $port,
25 dpavlin 78 store_path => $store_path,
26 dpavlin 53 debug => $debug,
27 dpavlin 50 queue => [ qw/
28 dpavlin 53 GetRPCMethods
29 dpavlin 57 GetParameterNames
30 dpavlin 50 / ],
31 dpavlin 57 # Reboot
32 dpavlin 50 });
33 dpavlin 28 $server->run();
34    

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26