* - GNUNET_TESTBED_underlay_configure_link not implemented
* - GNUNET_TESTBED_underlaylinkmodel_set_link not usable
* - GNUNET_TESTBED_peer_stop evokes standard service disconnect
+ * - GNUNET_TESTBED_peer_destroy and GNUNET_TESTBED_peer_create
* - how can we test the sublayers of CADET, e.g. connection, tunnel, channel?
*
* Development
*/
static struct GNUNET_HashCode hashed_portname;
+/**
+ * Port handle.
+ */
+struct GNUNET_CADET_Port *port;
+
/**
* Result of the test.
*/
GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s\n", __func__);
+ if (0 == strncmp ("listening_peer", cls, sizeof (cls)))
+ GNUNET_CADET_close_port (port);
+
GNUNET_CADET_disconnect (cadet);
}
const struct GNUNET_CONFIGURATION_Handle *cfg)
{
struct GNUNET_CADET_Handle *cadet;
- struct GNUNET_CADET_Port *port;
struct GNUNET_MQ_MessageHandler msg_handlers[] = {
GNUNET_MQ_hd_fixed_size (message,
GNUNET_MESSAGE_TYPE_DUMMY,
"cadet",
&check_test_readyness, NULL,
&setup_listening_peer,
- &disconnect_from_peer, NULL);
+ &disconnect_from_peer, "listening_peer");
testbed_to_svc[0] =
GNUNET_TESTBED_service_connect (NULL, test_peers[0].testbed_peer,
"cadet",
&check_test_readyness, NULL,
&setup_initiating_peer,
- &disconnect_from_peer, NULL);
+ &disconnect_from_peer, "initiating_peer");
}
}