Author: toad
Date: 2007-09-21 15:13:20 +0000 (Fri, 21 Sep 2007)
New Revision: 15226

Modified:
   trunk/freenet/src/freenet/node/NodeDispatcher.java
   trunk/freenet/src/freenet/node/PeerManager.java
Log:
javadocs

Modified: trunk/freenet/src/freenet/node/NodeDispatcher.java
===================================================================
--- trunk/freenet/src/freenet/node/NodeDispatcher.java  2007-09-21 10:40:52 UTC 
(rev 15225)
+++ trunk/freenet/src/freenet/node/NodeDispatcher.java  2007-09-21 15:13:20 UTC 
(rev 15226)
@@ -551,7 +551,8 @@
         * request which we should handle anyway.
         * @param cb
         * @param locsNotVisited 
-        * @param maxDistance 
+        * @param maxDistance Don't route to any nodes further away from the 
target than this distance.
+        * Note that it is a distance, NOT A LOCATION.
         * @param dontReject If true, don't reject the request, simply return 
false and the caller will handle it.
         * @return True unless we rejected the request (due to load, route not 
found etc), or would have if it weren't for dontReject.
         */

Modified: trunk/freenet/src/freenet/node/PeerManager.java
===================================================================
--- trunk/freenet/src/freenet/node/PeerManager.java     2007-09-21 10:40:52 UTC 
(rev 15225)
+++ trunk/freenet/src/freenet/node/PeerManager.java     2007-09-21 15:13:20 UTC 
(rev 15226)
@@ -650,6 +650,7 @@
      * than we are, and is not included in the provided set.
         * @param addUnpickedLocsTo Add all locations we didn't choose which we 
could have routed to to 
         * this array. Remove the location of the peer we pick from it.
+        * @param maxDistance If a node is further away from the target than 
this distance, ignore it.
      */
     private PeerNode _closerPeer(PeerNode pn, Set routedTo, Set notIgnored, 
double target, boolean ignoreSelf, boolean ignoreBackedOff, int minVersion, 
Vector addUnpickedLocsTo, double maxDistance) {
         PeerNode[] peers;  


Reply via email to