/[cwmp]/google/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

Contents of /google/bin/acs.pl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 84 - (show annotations)
Fri Jun 22 18:25:24 2007 UTC (16 years, 10 months ago) by dpavlin
File MIME type: text/plain
File size: 509 byte(s)
use Net::Server instead of low-level IO::Socket::INET (that will hopefully
bring us free of charge forking server, background and various other stuff
:-)
1 #!/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 use lib './lib';
10 use CWMP::Server;
11 use Getopt::Long;
12
13 my $port = 3333;
14 my $debug = 0;
15 my $store_path = 'state.db';
16
17 GetOptions(
18 'debug+' => \$debug,
19 'port=i' => \$port,
20 'store-path=s' => \$store_path,
21 );
22
23 my $server = CWMP::Server->new({
24 port => $port,
25 store_path => $store_path,
26 debug => $debug,
27 default_queue => [ qw/
28 GetRPCMethods
29 GetParameterNames
30 / ],
31 # Reboot
32 });
33 $server->run();
34

Properties

Name Value
svn:executable *

  ViewVC Help
Powered by ViewVC 1.1.26