aboutsummaryrefslogtreecommitdiff
path: root/src/multicast
diff options
context:
space:
mode:
authorlurchi <lurchi@strangeplace.net>2017-01-26 01:13:46 +0100
committerlurchi <lurchi@strangeplace.net>2017-01-26 01:13:46 +0100
commita2b98912a9e67a450caa7493162c2af69a6d1e18 (patch)
tree0c55aa165e5640465909b399d996bc29ba6f1b79 /src/multicast
parent039a4156395706f3222d5c0de69ab37af334e3fe (diff)
downloadgnunet-a2b98912a9e67a450caa7493162c2af69a6d1e18.tar.gz
gnunet-a2b98912a9e67a450caa7493162c2af69a6d1e18.zip
add hints on how to fix the multipeer tests
Diffstat (limited to 'src/multicast')
-rw-r--r--src/multicast/test_multicast_multipeer.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/multicast/test_multicast_multipeer.c b/src/multicast/test_multicast_multipeer.c
index 792b49c49..e81b63f92 100644
--- a/src/multicast/test_multicast_multipeer.c
+++ b/src/multicast/test_multicast_multipeer.c
@@ -240,6 +240,8 @@ multicast_ca1 (void *cls,
240 GNUNET_CRYPTO_ecdsa_key_get_public (member_key, &member_pub_key); 240 GNUNET_CRYPTO_ecdsa_key_get_public (member_key, &member_pub_key);
241 241
242 // Get GNUnet identity of origin 242 // Get GNUnet identity of origin
243 // FIXME: the return value is not a GNUNET_PeerIdentity, it can retrieved in
244 // pi_cb: pinfo->result.id
243 peer_id_origin = GNUNET_TESTBED_peer_get_information (peers[0], 245 peer_id_origin = GNUNET_TESTBED_peer_get_information (peers[0],
244 GNUNET_TESTBED_PIT_IDENTITY, 246 GNUNET_TESTBED_PIT_IDENTITY,
245 pi_cb, 247 pi_cb,
@@ -370,6 +372,16 @@ testbed_master (void *cls,
370 372
371 peers = p; 373 peers = p;
372 374
375 /**
376 * FIXME:
377 * we can't already GNUNET_TESTBED_service_connect here, because in the
378 * continuation callback multicast_ca1 we need the origin's peer identity
379 * which we can retrieve only using the asynchronous
380 * GNUNET_TESTBED_peer_get_information function.
381 * So we need to call GNUNET_TESTBED_peer_get_information here, and call
382 * GNUNET_TESTBED_service_connect in the result callback.
383 */
384
373 /* connect to a peers service */ 385 /* connect to a peers service */
374 op0 = GNUNET_TESTBED_service_connect 386 op0 = GNUNET_TESTBED_service_connect
375 (NULL, /* Closure for operation */ 387 (NULL, /* Closure for operation */