summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing.h
diff options
context:
space:
mode:
authorMatthias Wachs <wachs@net.in.tum.de>2011-08-24 13:42:47 +0000
committerMatthias Wachs <wachs@net.in.tum.de>2011-08-24 13:42:47 +0000
commitdf0c0a796560d71065988a961f0046f8a0377456 (patch)
treedf358fa627f34c0a598612cf681a7cc0a6f37a9f /src/transport/transport-testing.h
parent0631fa0b614e463c585162b065f56f31eeb13dfa (diff)
new test to check transport start and shutdown
Diffstat (limited to 'src/transport/transport-testing.h')
-rw-r--r--src/transport/transport-testing.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/transport/transport-testing.h b/src/transport/transport-testing.h
index 672a435aa..3e5486eb7 100644
--- a/src/transport/transport-testing.h
+++ b/src/transport/transport-testing.h
@@ -102,6 +102,7 @@ GNUNET_TRANSPORT_TESTING_stop_peer (struct PeerContext *pc);
* @param p2 peer 2
* @param cb the callback to call
* @param cb_cls callback cls
+ * @return a connect request handle
*/
GNUNET_TRANSPORT_TESTING_ConnectRequest
GNUNET_TRANSPORT_TESTING_connect_peers (struct PeerContext *p1,
@@ -109,6 +110,11 @@ GNUNET_TRANSPORT_TESTING_connect_peers (struct PeerContext *p1,
GNUNET_TRANSPORT_TESTING_connect_cb cb,
void *cls);
+/**
+ * Cancel the request to connect two peers
+ * Tou MUST cancel the request if you stop the peers before the peers connected succesfully
+ * @param cc a connect request handle
+ */
void
GNUNET_TRANSPORT_TESTING_connect_peers_cancel (void *cc);