aboutsummaryrefslogtreecommitdiff
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)
downloadgnunet-ffabb052fa64eded69dffa1387b72df0ad1b0211.tar.gz
gnunet-ffabb052fa64eded69dffa1387b72df0ad1b0211.zip
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,
58 void *cls); 58 void *cls);
59 59
60 60
61
61struct GNUNET_TRANSPORT_TESTING_handle; 62struct GNUNET_TRANSPORT_TESTING_handle;
62 63
63/** 64/**
@@ -160,6 +161,16 @@ GNUNET_TRANSPORT_TESTING_stop_peer (struct GNUNET_TRANSPORT_TESTING_handle *tth,
160 161
161 162
162/** 163/**
164 * Restart the given peer
165 * @param tth testing handle
166 * @param p the peer
167 */
168void
169GNUNET_TRANSPORT_TESTING_restart_peer (struct GNUNET_TRANSPORT_TESTING_handle *tth,
170 struct PeerContext *p,
171 const char *cfgname);
172
173/**
163 * Connect the given peers and call the callback when both peers report the 174 * Connect the given peers and call the callback when both peers report the
164 * inbound connection. Remarks: start_peer's notify_connect callback can be called 175 * inbound connection. Remarks: start_peer's notify_connect callback can be called
165 * before. 176 * before.