Update of /cvsroot/freenet/Freenet0.7Rewrite/src/freenet/io/comm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv22884/src/freenet/io/comm
Modified Files:
DMT.java
Log Message:
Build 127 (mandatory):
New backtracking.
Ability to add nodes from the command line rather than editing a file.
Index: DMT.java
===================================================================
RCS file: /cvsroot/freenet/Freenet0.7Rewrite/src/freenet/io/comm/DMT.java,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -w -r1.15 -r1.16
--- DMT.java 25 Aug 2005 17:28:19 -0000 1.15
+++ DMT.java 7 Sep 2005 14:34:48 -0000 1.16
@@ -69,6 +69,7 @@
public static final String FNP_SOURCE_PEERNODE = "sourcePeerNode";
public static final String PING_SEQNO = "pingSequenceNumber";
public static final String LOCATION = "location";
+ public static final String NEAREST_LOCATION = "nearestLocation";
public static final String TARGET_LOCATION = "targetLocation";
public static final String TYPE = "type";
public static final String PAYLOAD = "payload";
@@ -496,14 +497,16 @@
public static final MessageType FNPDataRequest = new
MessageType("FNPDataRequest") {{
addField(UID, Long.class);
addField(HTL, Short.class);
+ addField(NEAREST_LOCATION, Double.class);
addField(FREENET_ROUTING_KEY, Key.class);
}};
- public static final Message createFNPDataRequest(long id, short htl, Key
key) {
+ public static final Message createFNPDataRequest(long id, short htl, Key
key, double nearestLocation) {
Message msg = new Message(FNPDataRequest);
msg.set(UID, id);
msg.set(HTL, htl);
msg.set(FREENET_ROUTING_KEY, key);
+ msg.set(NEAREST_LOCATION, nearestLocation);
return msg;
}