summaryrefslogtreecommitdiff
path: root/src/transport/transport-testing.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-11-06 23:28:30 +0000
committerChristian Grothoff <christian@grothoff.org>2015-11-06 23:28:30 +0000
commit17bca33cca3c06668aa07c2750000a40a229c4a3 (patch)
tree70a1ad9c2506b4ca50b19fa0b387b46ab0b9b2e5 /src/transport/transport-testing.h
parentbfe1f56580a066da971887c9beea44c890d26dd6 (diff)
-removing last uses of TRANSPORT_try_connect API
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
struct GNUNET_TRANSPORT_Handle *th;
/**
+ * Peer's ATS handle.
+ */
+ struct GNUNET_ATS_ConnectivityHandle *ats;
+
+ /**
* Peer's transport get hello handle to retrieve peer's HELLO message
*/
struct GNUNET_TRANSPORT_GetHelloHandle *ghh;
@@ -156,10 +161,10 @@ struct GNUNET_TRANSPORT_TESTING_ConnectRequest
struct PeerContext *p1;
struct PeerContext *p2;
struct GNUNET_SCHEDULER_Task *tct;
+ struct GNUNET_ATS_ConnectivitySuggestHandle *ats_sh;
+ struct GNUNET_TRANSPORT_OfferHelloHandle *oh;
GNUNET_TRANSPORT_TESTING_connect_cb cb;
void *cb_cls;
- struct GNUNET_TRANSPORT_Handle *th_p1;
- struct GNUNET_TRANSPORT_Handle *th_p2;
int p1_c;
int p2_c;
};
@@ -231,7 +236,6 @@ GNUNET_TRANSPORT_TESTING_stop_peer (struct GNUNET_TRANSPORT_TESTING_handle *tth,
/**
* Restart the given peer
*
- * @param tth testing handle
* @param p the peer
* @param cfgname the cfg file used to restart
* @param restart_cb restart callback
@@ -239,8 +243,7 @@ GNUNET_TRANSPORT_TESTING_stop_peer (struct GNUNET_TRANSPORT_TESTING_handle *tth,
* @return #GNUNET_OK in success otherwise #GNUNET_SYSERR
*/
int
-GNUNET_TRANSPORT_TESTING_restart_peer (struct GNUNET_TRANSPORT_TESTING_handle *tth,
- struct PeerContext *p,
+GNUNET_TRANSPORT_TESTING_restart_peer (struct PeerContext *p,
const char *cfgname,
GNUNET_TRANSPORT_TESTING_start_cb restart_cb,
void *cb_cls);