|
|
|
@ -91,9 +91,6 @@ public class yacyNetwork {
|
|
|
|
|
return parts;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// use our own formatter to prevent concurrency locks with other processes
|
|
|
|
|
private final static GenericFormatter my_SHORT_SECOND_FORMATTER = new GenericFormatter(GenericFormatter.FORMAT_SHORT_SECOND, GenericFormatter.time_second);
|
|
|
|
|
|
|
|
|
|
public static final LinkedHashMap<String,ContentBody> basicRequestParts(String myHash, String targetHash, String networkName) {
|
|
|
|
|
// put in all the essentials for routing and network authentication
|
|
|
|
|
// generate a session key
|
|
|
|
@ -105,6 +102,8 @@ public class yacyNetwork {
|
|
|
|
|
if (targetHash != null) parts.put("youare", UTF8.StringBody(targetHash));
|
|
|
|
|
|
|
|
|
|
// time information for synchronization
|
|
|
|
|
// use our own formatter to prevent concurrency locks with other processes
|
|
|
|
|
GenericFormatter my_SHORT_SECOND_FORMATTER = new GenericFormatter(GenericFormatter.FORMAT_SHORT_SECOND, GenericFormatter.time_second);
|
|
|
|
|
parts.put("mytime", UTF8.StringBody(my_SHORT_SECOND_FORMATTER.format()));
|
|
|
|
|
parts.put("myUTC", UTF8.StringBody(Long.toString(System.currentTimeMillis())));
|
|
|
|
|
|
|
|
|
|