From ffabb052fa64eded69dffa1387b72df0ad1b0211 Mon Sep 17 00:00:00 2001 From: Matthias Wachs Date: Mon, 21 Nov 2011 22:02:20 +0000 Subject: transport testing: peer restart functionality + testcases if peers reconnect when restarted --- src/transport/transport-testing.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/transport/transport-testing.h') diff --git a/src/transport/transport-testing.h b/src/transport/transport-testing.h index cec7eb724..32641d8bc 100644 --- a/src/transport/transport-testing.h +++ b/src/transport/transport-testing.h @@ -58,6 +58,7 @@ typedef void (*GNUNET_TRANSPORT_TESTING_connect_cb) (struct PeerContext * p1, void *cls); + struct GNUNET_TRANSPORT_TESTING_handle; /** @@ -159,6 +160,16 @@ GNUNET_TRANSPORT_TESTING_stop_peer (struct GNUNET_TRANSPORT_TESTING_handle *tth, struct PeerContext *pc); +/** + * Restart the given peer + * @param tth testing handle + * @param p the peer + */ +void +GNUNET_TRANSPORT_TESTING_restart_peer (struct GNUNET_TRANSPORT_TESTING_handle *tth, + struct PeerContext *p, + const char *cfgname); + /** * Connect the given peers and call the callback when both peers report the * inbound connection. Remarks: start_peer's notify_connect callback can be called -- cgit v1.2.3