[freenet-cvs] r15002 - trunk/freenet/src/freenet/pluginmanager

toad at freenetproject.org toad at freenetproject.org
Fri Sep 7 16:49:23 UTC 2007


Author: toad
Date: 2007-09-07 16:49:23 +0000 (Fri, 07 Sep 2007)
New Revision: 15002

Modified:
   trunk/freenet/src/freenet/pluginmanager/ForwardPortStatus.java
Log:
Re-order and renumber the constants. More positive = more confidence in success, more negative = more confidence in failure

Modified: trunk/freenet/src/freenet/pluginmanager/ForwardPortStatus.java
===================================================================
--- trunk/freenet/src/freenet/pluginmanager/ForwardPortStatus.java	2007-09-07 16:47:54 UTC (rev 15001)
+++ trunk/freenet/src/freenet/pluginmanager/ForwardPortStatus.java	2007-09-07 16:49:23 UTC (rev 15002)
@@ -3,21 +3,21 @@
 public class ForwardPortStatus {
 	
 	public final int status;
-	/** The port forward is in progress */
-	public static final int IN_PROGRESS = 0;
 	/** The port forward definitely succeeded. */
-	public static final int DEFINITE_SUCCESS = 1;
+	public static final int DEFINITE_SUCCESS = 3;
 	/** The port forward probably succeeded. I.e. it succeeded unless there was
 	 * for example hostile action on the part of the router. */
 	public static final int PROBABLE_SUCCESS = 2;
 	/** The port forward may have succeeded. Or it may not have. We should 
 	 * definitely try to check out of band. See UP&P: Many routers say they've
 	 * forwarded the port when they haven't. */
-	public static final int MAYBE_SUCCESS = 3;
+	public static final int MAYBE_SUCCESS = 1;
+	/** The port forward is in progress */
+	public static final int IN_PROGRESS = 0;
+	/** The port forward probably failed */
+	public static final int PROBABLE_FAILURE = -1;
 	/** The port forward definitely failed. */
-	public static final int DEFINITE_FAILURE = -1;
-	/** The port forward probably failed */
-	public static final int PROBABLE_FAILURE = -2;
+	public static final int DEFINITE_FAILURE = -2;
 	
 	public final String reasonString;
 	




More information about the cvs mailing list