summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-11-21 22:02:20 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-11-21 22:02:20 +0000
commitffabb052fa64eded69dffa1387b72df0ad1b0211 (patch)
treefb5fb6a36a0f885adcc7c44e84347a1cfa7e75b8 /src/transport/transport-testing.h
parentd3871e80fec5e7fcd5ff7cc7ff64284bb7051b38 (diff)
transport testing:
peer restart functionality + testcases if peers reconnect when restarted
Diffstat (limited to 'src/transport/transport-testing.h')
-rw-r--r--src/transport/transport-testing.h11
1 files changed, 11 insertions, 0 deletions
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;
/**
@@ -160,6 +161,16 @@ GNUNET_TRANSPORT_TESTING_stop_peer (struct GNUNET_TRANSPORT_TESTING_handle *tth,
/**
+ * 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
* before.