ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/AnyEvent-MP/bin/aemp
(Generate patch)

Comparing AnyEvent-MP/bin/aemp (file contents):
Revision 1.5 by root, Tue Aug 11 10:05:34 2009 UTC vs.
Revision 1.6 by root, Thu Aug 13 00:23:36 2009 UTC

19 19
20 # node configuration: TLS 20 # node configuration: TLS
21 aemp setcert <file> # set a certificate (key.pem + certificate.pem) 21 aemp setcert <file> # set a certificate (key.pem + certificate.pem)
22 aemp clrcert # remove certificate 22 aemp clrcert # remove certificate
23 aemp gencert # generate a random certificate 23 aemp gencert # generate a random certificate
24
25 # node configuration
26 aemp setseeds noderef... # set seednodes
27 aemp addseed noderef # add a seednode
28 aemp delseed noderef # remove seednode
24 29
25=head1 DESCRIPTION 30=head1 DESCRIPTION
26 31
27With aemp you can configure various aspects of AnyEvent::MP and it's protocol. 32With aemp you can configure various aspects of AnyEvent::MP and it's protocol.
28 33
128 }, 133 },
129 clrcert => sub { 134 clrcert => sub {
130 delete $nodecfg->{cert}; 135 delete $nodecfg->{cert};
131 ++$cfg->{dirty}; 136 ++$cfg->{dirty};
132 }, 137 },
138
139 setseeds => sub {
140 $cfg->{seeds} = [@ARGV];
141 @ARGV = ();
142 ++$cfg->{dirty};
143 },
144 addseed => sub {
145 my $seed = shift @ARGV;
146 @{ $cfg->{seeds} } = grep $_ ne $seed, @{ $cfg->{seeds} };
147 push @{ $cfg->{seeds} }, $seed;
148 ++$cfg->{dirty};
149 },
150 addseed => sub {
151 my $seed = shift @ARGV;
152 @{ $cfg->{seeds} } = grep $_ ne $seed, @{ $cfg->{seeds} };
153 ++$cfg->{dirty};
154 },
133); 155);
134 156
135sub docmd { 157sub docmd {
136 my $cmd = shift @ARGV; 158 my $cmd = shift @ARGV;
137 159

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines