refactor function logs; refactor conntect to services
authorxrs <xrs@mail36.net>
Sat, 29 Feb 2020 16:58:00 +0000 (17:58 +0100)
committerxrs <xrs@mail36.net>
Fri, 19 Jun 2020 20:48:54 +0000 (22:48 +0200)
src/cadet/test_cadeT.c

index 2248387a1c40827143c8a6321a6b0d81afe88b8f..dd6c163c47149e3d1b8f05676ef1a9a853828525 100644 (file)
 #define CONFIG            "test_cadet.conf"
 #define TESTPROGAM_NAME   "test-cadet-channel-resumption"
 
+/**
+ * Counter for gathering peerinformation.
+ */
+static int peerinfo_cnt = 0;
+
 /**
  * Structure for storing information of testbed peers.
  */
-struct testbed_peers
+struct TEST_PEERS
 {
   /**
    * Index of the peer.
    */
-  int index;
+  int idx;
 
   /**
    * Peer Identity.
    */
   struct GNUNET_PeerIdentity id;
-} testbed_peers[2];
+
+  struct GNUNET_TESTBED_Peer *testbed_peer;
+
+  int ready;
+
+} test_peers[2];
+
 
 /****************************** TEST LOGIC ********************************/