/[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 40 by dpavlin, Tue Jun 19 17:29:07 2007 UTC google/trunk/bin/acs.pl revision 205 by dpavlin, Wed Nov 14 23:02:17 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 CWMP::Session;
12    use CWMP::Vendor;
13    use Getopt::Long;
14    use Data::Dump qw/dump/;
15    
16  my $port = 3333;  my $port = 3333;
17    my $debug = 0;
18    my $store_path = './';
19    my $store_plugin = 'YAML';
20    my $create_dump = 1;
21    
22    GetOptions(
23            'debug+' => \$debug,
24            'port=i' => \$port,
25            'store-path=s' => \$store_path,
26            'store-plugin=s' => \$store_plugin,
27            'create_dump!' => \$create_dump,
28    );
29    
30    my $server = CWMP::Server->new({
31            port => $port,
32            session => {
33                    store => {
34                            module => $store_plugin,
35                            path => $store_path,
36                            debug => $debug,
37                    },
38                    create_dump => $create_dump,
39            },
40            debug => $debug,
41    });
42    
43    CWMP::Vendor->add_triggers;
44    
 my $server = CWMP::Server->new({ port => $port, debug => 1 });  
45  $server->run();  $server->run();
46    

Legend:
Removed from v.40  
changed lines
  Added in v.205

  ViewVC Help
Powered by ViewVC 1.1.26