12 |
|
|
13 |
my $port = 3333; |
my $port = 3333; |
14 |
my $debug = 0; |
my $debug = 0; |
15 |
|
my $store_path = './'; |
16 |
|
my $store_plugin = 'YAML'; |
17 |
|
|
18 |
GetOptions( |
GetOptions( |
19 |
'debug+' => \$debug, |
'debug+' => \$debug, |
20 |
'port=i' => \$port, |
'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 |
store => { |
store => { |
28 |
# module => 'DBMDeep', |
module => $store_plugin, |
29 |
module => 'YAML', |
path => $store_path, |
30 |
store_path => 'state.db', |
debug => $debug, |
31 |
}, |
}, |
32 |
debug => $debug, |
debug => $debug, |
33 |
default_queue => [ qw/ |
default_queue => [ qw/ |