(no commit message)
authorMatthias Wachs <wachs@net.in.tum.de>
Fri, 30 Apr 2010 08:19:49 +0000 (08:19 +0000)
committerMatthias Wachs <wachs@net.in.tum.de>
Fri, 30 Apr 2010 08:19:49 +0000 (08:19 +0000)
src/hostlist/.libs/gnunet-daemon-hostlist [new file with mode: 0755]
src/hostlist/.libs/test_gnunet_daemon_hostlist [new file with mode: 0755]
src/hostlist/.libs/test_gnunet_daemon_hostlist_learning [new file with mode: 0755]
src/hostlist/hostlists_adv_peer.file [deleted file]
src/hostlist/hostlists_learn_peer2.file [new file with mode: 0644]
src/hostlist/learning_peer1.conf [deleted file]
src/hostlist/learning_peer2.conf [deleted file]
src/hostlist/test_gnunet_daemon_hostlist_learning.c
src/hostlist/test_learning_adv_peer.conf
src/hostlist/test_learning_learn_peer.conf

diff --git a/src/hostlist/.libs/gnunet-daemon-hostlist b/src/hostlist/.libs/gnunet-daemon-hostlist
new file mode 100755 (executable)
index 0000000..32df3a6
Binary files /dev/null and b/src/hostlist/.libs/gnunet-daemon-hostlist differ
diff --git a/src/hostlist/.libs/test_gnunet_daemon_hostlist b/src/hostlist/.libs/test_gnunet_daemon_hostlist
new file mode 100755 (executable)
index 0000000..3946c21
Binary files /dev/null and b/src/hostlist/.libs/test_gnunet_daemon_hostlist differ
diff --git a/src/hostlist/.libs/test_gnunet_daemon_hostlist_learning b/src/hostlist/.libs/test_gnunet_daemon_hostlist_learning
new file mode 100755 (executable)
index 0000000..a72af64
Binary files /dev/null and b/src/hostlist/.libs/test_gnunet_daemon_hostlist_learning differ
diff --git a/src/hostlist/hostlists_adv_peer.file b/src/hostlist/hostlists_adv_peer.file
deleted file mode 100644 (file)
index e69de29..0000000
diff --git a/src/hostlist/hostlists_learn_peer2.file b/src/hostlist/hostlists_learn_peer2.file
new file mode 100644 (file)
index 0000000..79df4df
Binary files /dev/null and b/src/hostlist/hostlists_learn_peer2.file differ
diff --git a/src/hostlist/learning_peer1.conf b/src/hostlist/learning_peer1.conf
deleted file mode 100644 (file)
index fe02e19..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-[PATHS]
-SERVICEHOME = /tmp/test-gnunetd-hostlist-peer-1/
-DEFAULTCONFIG = learning_peer1.conf
-
-[resolver]
-PORT = 12964
-
-[transport]
-PORT = 12965
-PLUGINS = tcp
-DEBUG = YES
-
-[arm]
-PORT = 12966
-DEFAULTSERVICES = resolver transport core statistics topology
-#GLOBAL_PREFIX = xterm -e gdb -x cmd --args 
-#DEBUG=NO
-
-[statistics]
-PORT = 12967
-
-[transport-tcp]
-PORT = 12968
-
-[peerinfo]
-PORT = 12969
-
-[core]
-PORT = 12970
-#DEBUG = YES
-#PREFIX = valgrind --tool=memcheck
-
-[testing]
-WEAKRANDOM = YES
-
-[hostlist]
-HTTPPORT = 12980
-SERVERS = http://localhost:12981/
-OPTIONS = -b -p -e -a
-DEBUG = YES
-HOSTLISTFILE = hostlists_peer1.file
-#BINARY = /home/grothoff/bin/gnunet-daemon-hostlist
-
-
-[topology]
-#DEBUG = YES
-#PREFIX = valgrind --tool=memcheck
diff --git a/src/hostlist/learning_peer2.conf b/src/hostlist/learning_peer2.conf
deleted file mode 100644 (file)
index 1255160..0000000
+++ /dev/null
@@ -1,46 +0,0 @@
-[PATHS]
-SERVICEHOME = /tmp/test-gnunetd-hostlist-peer-2/
-DEFAULTCONFIG = learning_peer2.conf
-
-[resolver]
-PORT = 22964
-
-[transport]
-PORT = 22965
-PLUGINS = tcp
-DEBUG = YES
-
-[arm]
-PORT = 22966
-DEFAULTSERVICES = resolver transport core statistics topology
-#GLOBAL_PREFIX = xterm -e gdb -x cmd --args
-#DEBUG=NO
-
-[statistics]
-PORT = 22967
-
-[transport-tcp]
-PORT = 22968
-
-[peerinfo]
-PORT = 22969
-
-[core]
-PORT = 22970
-DEBUG = YES
-#PREFIX = valgrind --tool=memcheck
-
-[testing]
-WEAKRANDOM = YES
-
-[hostlist]
-HTTPPORT = 12981
-SERVERS = http://localhost:12980/
-OPTIONS = -b -p -e -a
-DEBUG = YES
-HOSTLISTFILE = hostlists_peer2.file
-#BINARY = /home/grothoff/bin/gnunet-daemon-hostlist
-
-[topology]
-#DEBUG = YES
-#PREFIX = valgrind --tool=memcheck
index 25456908aebc4716afaf52ca61fcfa68c6200d28..e502a71752f3de48a9bc6491eb2529f41c01342d 100644 (file)
@@ -506,6 +506,12 @@ main (int argc, char *argv[])
   ret = check ();
   GNUNET_DISK_directory_remove ("/tmp/test-gnunetd-hostlist-peer-1");
   GNUNET_DISK_directory_remove ("/tmp/test-gnunetd-hostlist-peer-2");
+  if ( GNUNET_YES == GNUNET_DISK_file_test ("hostlists_learn_peer.file") )
+    {
+      if ( remove ("hostlists_learn_peer.file")  == 0)
+      GNUNET_log (GNUNET_ERROR_TYPE_INFO,
+            _("Hostlist file hostlists_learn_peer.file was removed\n"));
+    }
   return ret; 
 }
 
index fdf3095d506c075ebc38a20fe72ab94bd6d4d612..ff25d0109acf589075900747f21dfd0b3e8661a0 100644 (file)
@@ -38,7 +38,7 @@ HTTPPORT = 12981
 SERVERS = http://localhost:12981/
 OPTIONS = -p -a
 #OPTIONS = -b -p -a
-DEBUG = YES
+#DEBUG = YES
 HOSTLISTFILE = hostlists_adv_peer.file
 #BINARY = /home/grothoff/bin/gnunet-daemon-hostlist
 
index 01873e6d6f3042d30d99fd9b787ebe80d541ddcb..19e73b5f33f5d8980c3a12d721dbf6c670b51004 100644 (file)
@@ -37,7 +37,7 @@ HTTPPORT = 12980
 SERVERS = http://localhost:12981/
 OPTIONS = -b -e
 #OPTIONS = -b -p
-DEBUG = YES
+#DEBUG = YES
 HOSTLISTFILE = hostlists_learn_peer.file
 #BINARY = /home/grothoff/bin/gnunet-daemon-hostlist