diff options
Diffstat (limited to 'src/org/gnunet/nse/NetworkSizeEstimation.java')
-rw-r--r-- | src/org/gnunet/nse/NetworkSizeEstimation.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/gnunet/nse/NetworkSizeEstimation.java b/src/org/gnunet/nse/NetworkSizeEstimation.java index db4c8f0..284d144 100644 --- a/src/org/gnunet/nse/NetworkSizeEstimation.java +++ b/src/org/gnunet/nse/NetworkSizeEstimation.java | |||
@@ -23,10 +23,10 @@ package org.gnunet.nse; | |||
23 | 23 | ||
24 | import org.gnunet.construct.Double; | 24 | import org.gnunet.construct.Double; |
25 | import org.gnunet.construct.*; | 25 | import org.gnunet.construct.*; |
26 | import org.gnunet.construct.ProtocolViolation; | 26 | import org.gnunet.construct.ProtocolViolationException; |
27 | import org.gnunet.util.*; | 27 | import org.gnunet.util.*; |
28 | import org.gnunet.util.getopt.Option; | 28 | import org.gnunet.util.getopt.Argument; |
29 | import org.gnunet.util.getopt.OptionAction; | 29 | import org.gnunet.util.getopt.ArgumentAction; |
30 | import org.slf4j.Logger; | 30 | import org.slf4j.Logger; |
31 | import org.slf4j.LoggerFactory; | 31 | import org.slf4j.LoggerFactory; |
32 | 32 | ||
@@ -72,7 +72,7 @@ public class NetworkSizeEstimation { | |||
72 | @Override | 72 | @Override |
73 | public void process(GnunetMessage.Body msg) { | 73 | public void process(GnunetMessage.Body msg) { |
74 | if (!(msg instanceof UpdateMessage)) { | 74 | if (!(msg instanceof UpdateMessage)) { |
75 | throw new ProtocolViolation("got unexcpected message"); | 75 | throw new ProtocolViolationException("got unexcpected message"); |
76 | } | 76 | } |
77 | UpdateMessage uMsg = (UpdateMessage) msg; | 77 | UpdateMessage uMsg = (UpdateMessage) msg; |
78 | 78 | ||
@@ -169,7 +169,7 @@ public class NetworkSizeEstimation { | |||
169 | 169 | ||
170 | public static void main(String[] args) { | 170 | public static void main(String[] args) { |
171 | new Program(args) { | 171 | new Program(args) { |
172 | @Option(action = OptionAction.SET, | 172 | @Argument(action = ArgumentAction.SET, |
173 | shortname = "w", | 173 | shortname = "w", |
174 | longname = "continuous", | 174 | longname = "continuous", |
175 | description = "don't exit after the first estimation response") | 175 | description = "don't exit after the first estimation response") |