/*
This file is part of GNUnet.
- Copyright (C) 2006, 2009, 2015 Christian Grothoff (and other contributing authors)
+ Copyright (C) 2006, 2009, 2015 GNUnet e.V.
GNUnet is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published
*/
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 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;
};
/**
* 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
* @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);