aboutsummaryrefslogtreecommitdiff
path: root/src/cadet/test_cadeT_util.h
diff options
context:
space:
mode:
authorxrs <xrs@mail36.net>2020-03-05 09:32:49 +0100
committerxrs <xrs@mail36.net>2020-05-21 22:46:49 +0200
commit81405b6abff2f0b6fb774bdf227ded577c1ce2de (patch)
treedf18967091547bb3af7ddbf712764e7ea3741282 /src/cadet/test_cadeT_util.h
parentf5da9cfbe9afaa471272127b61d6e17982209d03 (diff)
downloadgnunet-81405b6abff2f0b6fb774bdf227ded577c1ce2de.tar.gz
gnunet-81405b6abff2f0b6fb774bdf227ded577c1ce2de.zip
add condition for check_test_readyness; find kx_initiator
Diffstat (limited to 'src/cadet/test_cadeT_util.h')
-rw-r--r--src/cadet/test_cadeT_util.h37
1 files changed, 37 insertions, 0 deletions
diff --git a/src/cadet/test_cadeT_util.h b/src/cadet/test_cadeT_util.h
index b2afa34a1..7b92dc2cb 100644
--- a/src/cadet/test_cadeT_util.h
+++ b/src/cadet/test_cadeT_util.h
@@ -36,3 +36,40 @@ int test_result;
36void prepare_test (); 36void prepare_test ();
37 37
38void run_test (); 38void run_test ();
39
40/**
41 * Structure for storing information of testbed peers.
42 */
43struct TEST_PEERS
44{
45 /**
46 * Index of the peer.
47 */
48 int idx;
49
50 /**
51 * Peer Identity.
52 */
53 struct GNUNET_PeerIdentity id;
54
55 /**
56 * Handle of TESTBED peer.
57 */
58 struct GNUNET_TESTBED_Peer *testbed_peer;
59
60 /**
61 * Testbed management is finished and test peer is ready for test logic.
62 */
63 int ready;
64
65 /**
66 * Channel of initiating peer.
67 */
68 struct GNUNET_CADET_Channel *channel;
69
70 /**
71 * CADET handle.
72 */
73 struct GNUNET_CADET_Handle *cadet;
74
75} test_peers[REQUESTED_PEERS];