[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r13141 - gnunet/src/dht
From: |
gnunet |
Subject: |
[GNUnet-SVN] r13141 - gnunet/src/dht |
Date: |
Mon, 4 Oct 2010 09:35:10 +0200 |
Author: grothoff
Date: 2010-10-04 09:35:10 +0200 (Mon, 04 Oct 2010)
New Revision: 13141
Modified:
gnunet/src/dht/gnunet-dht-driver.c
gnunet/src/dht/test_dht_multipeer.c
gnunet/src/dht/test_dht_twopeer_put_get.c
Log:
use propper blocktype
Modified: gnunet/src/dht/gnunet-dht-driver.c
===================================================================
--- gnunet/src/dht/gnunet-dht-driver.c 2010-10-04 06:57:50 UTC (rev 13140)
+++ gnunet/src/dht/gnunet-dht-driver.c 2010-10-04 07:35:10 UTC (rev 13141)
@@ -1721,7 +1721,7 @@
/* Insert the data at the first peer */
test_get->get_handle = GNUNET_DHT_get_start(test_get->dht_handle,
get_delay,
- 1 /* FIXME: use real type */,
+ GNUNET_BLOCK_TYPE_TEST,
&known_keys[test_get->uid],
GNUNET_DHT_RO_NONE,
NULL, 0,
@@ -1832,7 +1832,7 @@
GNUNET_DHT_put(test_put->dht_handle,
&known_keys[test_put->uid],
GNUNET_DHT_RO_NONE,
- 1 /* FIXME: use real type */,
+ GNUNET_BLOCK_TYPE_TEST,
sizeof(data), data,
GNUNET_TIME_UNIT_FOREVER_ABS,
put_delay,
Modified: gnunet/src/dht/test_dht_multipeer.c
===================================================================
--- gnunet/src/dht/test_dht_multipeer.c 2010-10-04 06:57:50 UTC (rev 13140)
+++ gnunet/src/dht/test_dht_multipeer.c 2010-10-04 07:35:10 UTC (rev 13141)
@@ -450,7 +450,7 @@
outstanding_gets++;
test_get->get_handle = GNUNET_DHT_get_start(test_get->dht_handle,
GNUNET_TIME_UNIT_FOREVER_REL,
- 1 /* FIXME: use real type */,
+ GNUNET_BLOCK_TYPE_TEST,
&key,
GNUNET_DHT_RO_NONE,
NULL, 0,
@@ -521,7 +521,7 @@
GNUNET_DHT_put(test_put->dht_handle,
&key,
GNUNET_DHT_RO_NONE,
- 1 /* FIXME: use real type */,
+ GNUNET_BLOCK_TYPE_TEST,
sizeof(data), data,
GNUNET_TIME_UNIT_FOREVER_ABS,
GNUNET_TIME_UNIT_FOREVER_REL,
Modified: gnunet/src/dht/test_dht_twopeer_put_get.c
===================================================================
--- gnunet/src/dht/test_dht_twopeer_put_get.c 2010-10-04 06:57:50 UTC (rev
13140)
+++ gnunet/src/dht/test_dht_twopeer_put_get.c 2010-10-04 07:35:10 UTC (rev
13141)
@@ -241,7 +241,8 @@
GNUNET_HashCode key; /* Key for data lookup */
memset(&key, 42, sizeof(GNUNET_HashCode)); /* Set the key to the same thing
as when data was inserted */
global_get_handle = GNUNET_DHT_get_start(peer2dht,
GNUNET_TIME_relative_get_forever(),
- 1 /* FIXME: use real type */, &key,
+ GNUNET_BLOCK_TYPE_TEST,
+ &key,
GNUNET_DHT_RO_NONE,
NULL, 0,
NULL, 0,
@@ -276,7 +277,7 @@
GNUNET_DHT_put(peer1dht,
&key,
GNUNET_DHT_RO_NONE,
- 1 /* FIXME: use real type */,
+ GNUNET_BLOCK_TYPE_TEST,
sizeof(data), data,
GNUNET_TIME_UNIT_FOREVER_ABS,
GNUNET_TIME_UNIT_FOREVER_REL,
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r13141 - gnunet/src/dht,
gnunet <=