aboutsummaryrefslogtreecommitdiff
path: root/src/transport/transport-testing.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/transport/transport-testing.h')
-rw-r--r--src/transport/transport-testing.h13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/transport/transport-testing.h b/src/transport/transport-testing.h
index dcac29185..69da1f99d 100644
--- a/src/transport/transport-testing.h
+++ b/src/transport/transport-testing.h
@@ -93,6 +93,11 @@ struct PeerContext
93 struct GNUNET_TRANSPORT_Handle *th; 93 struct GNUNET_TRANSPORT_Handle *th;
94 94
95 /** 95 /**
96 * Peer's ATS handle.
97 */
98 struct GNUNET_ATS_ConnectivityHandle *ats;
99
100 /**
96 * Peer's transport get hello handle to retrieve peer's HELLO message 101 * Peer's transport get hello handle to retrieve peer's HELLO message
97 */ 102 */
98 struct GNUNET_TRANSPORT_GetHelloHandle *ghh; 103 struct GNUNET_TRANSPORT_GetHelloHandle *ghh;
@@ -156,10 +161,10 @@ struct GNUNET_TRANSPORT_TESTING_ConnectRequest
156 struct PeerContext *p1; 161 struct PeerContext *p1;
157 struct PeerContext *p2; 162 struct PeerContext *p2;
158 struct GNUNET_SCHEDULER_Task *tct; 163 struct GNUNET_SCHEDULER_Task *tct;
164 struct GNUNET_ATS_ConnectivitySuggestHandle *ats_sh;
165 struct GNUNET_TRANSPORT_OfferHelloHandle *oh;
159 GNUNET_TRANSPORT_TESTING_connect_cb cb; 166 GNUNET_TRANSPORT_TESTING_connect_cb cb;
160 void *cb_cls; 167 void *cb_cls;
161 struct GNUNET_TRANSPORT_Handle *th_p1;
162 struct GNUNET_TRANSPORT_Handle *th_p2;
163 int p1_c; 168 int p1_c;
164 int p2_c; 169 int p2_c;
165}; 170};
@@ -231,7 +236,6 @@ GNUNET_TRANSPORT_TESTING_stop_peer (struct GNUNET_TRANSPORT_TESTING_handle *tth,
231/** 236/**
232 * Restart the given peer 237 * Restart the given peer
233 * 238 *
234 * @param tth testing handle
235 * @param p the peer 239 * @param p the peer
236 * @param cfgname the cfg file used to restart 240 * @param cfgname the cfg file used to restart
237 * @param restart_cb restart callback 241 * @param restart_cb restart callback
@@ -239,8 +243,7 @@ GNUNET_TRANSPORT_TESTING_stop_peer (struct GNUNET_TRANSPORT_TESTING_handle *tth,
239 * @return #GNUNET_OK in success otherwise #GNUNET_SYSERR 243 * @return #GNUNET_OK in success otherwise #GNUNET_SYSERR
240 */ 244 */
241int 245int
242GNUNET_TRANSPORT_TESTING_restart_peer (struct GNUNET_TRANSPORT_TESTING_handle *tth, 246GNUNET_TRANSPORT_TESTING_restart_peer (struct PeerContext *p,
243 struct PeerContext *p,
244 const char *cfgname, 247 const char *cfgname,
245 GNUNET_TRANSPORT_TESTING_start_cb restart_cb, 248 GNUNET_TRANSPORT_TESTING_start_cb restart_cb,
246 void *cb_cls); 249 void *cb_cls);