aboutsummaryrefslogtreecommitdiff
path: root/src/dht/test_dht_twopeer.c
diff options
context:
space:
mode:
authorNathan S. Evans <evans@in.tum.de>2010-11-11 11:18:34 +0000
committerNathan S. Evans <evans@in.tum.de>2010-11-11 11:18:34 +0000
commit9e921c69007ba709fee460751d7f20237dd56ed7 (patch)
tree27077c143c90585bdce863f19135e4db17c4a0d6 /src/dht/test_dht_twopeer.c
parent1b18069ef2567ffe0994c799d1d179329d629ca9 (diff)
downloadgnunet-9e921c69007ba709fee460751d7f20237dd56ed7.tar.gz
gnunet-9e921c69007ba709fee460751d7f20237dd56ed7.zip
Adding replication parameter for initiating GET and PUT requests to the DHT.
Diffstat (limited to 'src/dht/test_dht_twopeer.c')
-rw-r--r--src/dht/test_dht_twopeer.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/dht/test_dht_twopeer.c b/src/dht/test_dht_twopeer.c
index 6f3d5060d..d5923dc11 100644
--- a/src/dht/test_dht_twopeer.c
+++ b/src/dht/test_dht_twopeer.c
@@ -220,7 +220,8 @@ get_stop_finished (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc)
220 &stop_retry_get, get_context); 220 &stop_retry_get, get_context);
221 get_context->get_handle = GNUNET_DHT_get_start(get_context->dht_handle, 221 get_context->get_handle = GNUNET_DHT_get_start(get_context->dht_handle,
222 GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 5), 222 GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 5),
223 0 /* fixme: use real type */, &get_context->peer->hashPubKey, 223 0 /* FIXME: use real type */, &get_context->peer->hashPubKey,
224 DEFAULT_GET_REPLICATION,
224 GNUNET_DHT_RO_NONE, 225 GNUNET_DHT_RO_NONE,
225 NULL, 0, 226 NULL, 0,
226 NULL, 0, 227 NULL, 0,
@@ -250,6 +251,7 @@ do_get (void *cls, const struct GNUNET_SCHEDULER_TaskContext * tc)
250 GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 5), 251 GNUNET_TIME_relative_multiply(GNUNET_TIME_UNIT_SECONDS, 5),
251 GNUNET_BLOCK_TYPE_DHT_HELLO, 252 GNUNET_BLOCK_TYPE_DHT_HELLO,
252 &get_context->peer->hashPubKey, 253 &get_context->peer->hashPubKey,
254 DEFAULT_GET_REPLICATION,
253 GNUNET_DHT_RO_NONE, 255 GNUNET_DHT_RO_NONE,
254 NULL, 0, 256 NULL, 0,
255 NULL, 0, 257 NULL, 0,