diff options
author | Christian Grothoff <christian@grothoff.org> | 2015-11-06 23:28:30 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2015-11-06 23:28:30 +0000 |
commit | 17bca33cca3c06668aa07c2750000a40a229c4a3 (patch) | |
tree | 70a1ad9c2506b4ca50b19fa0b387b46ab0b9b2e5 /src/transport/transport-testing.h | |
parent | bfe1f56580a066da971887c9beea44c890d26dd6 (diff) | |
download | gnunet-17bca33cca3c06668aa07c2750000a40a229c4a3.tar.gz gnunet-17bca33cca3c06668aa07c2750000a40a229c4a3.zip |
-removing last uses of TRANSPORT_try_connect API
Diffstat (limited to 'src/transport/transport-testing.h')
-rw-r--r-- | src/transport/transport-testing.h | 13 |
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 | */ |
241 | int | 245 | int |
242 | GNUNET_TRANSPORT_TESTING_restart_peer (struct GNUNET_TRANSPORT_TESTING_handle *tth, | 246 | GNUNET_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); |