12 |
|
|
13 |
my $port = 3333; |
my $port = 3333; |
14 |
my $debug = 0; |
my $debug = 0; |
15 |
|
my $store_path = 'state.db'; |
16 |
|
|
17 |
GetOptions( |
GetOptions( |
18 |
'debug+' => \$debug, |
'debug+' => \$debug, |
19 |
'port=i' => \$port, |
'port=i' => \$port, |
20 |
|
'store-path=s' => \$store_path, |
21 |
); |
); |
22 |
|
|
23 |
my $server = CWMP::Server->new({ |
my $server = CWMP::Server->new({ |
24 |
port => $port, |
port => $port, |
25 |
|
store_path => $store_path, |
26 |
debug => $debug, |
debug => $debug, |
27 |
queue => [ qw/ |
queue => [ qw/ |
28 |
GetRPCMethods |
GetRPCMethods |