diff options
-rw-r--r-- | src/cadet/test_cadeT.c | 6 | ||||
-rw-r--r-- | src/cadet/test_cadeT_util.c | 9 | ||||
-rw-r--r-- | src/cadet/test_cadeT_util.h | 2 |
3 files changed, 16 insertions, 1 deletions
diff --git a/src/cadet/test_cadeT.c b/src/cadet/test_cadeT.c index 0100224d6..1f1d3831e 100644 --- a/src/cadet/test_cadeT.c +++ b/src/cadet/test_cadeT.c | |||
@@ -124,6 +124,12 @@ set_data_loss_rate (int rate) | |||
124 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s: %i loss.\n", __func__, rate); | 124 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s: %i loss.\n", __func__, rate); |
125 | } | 125 | } |
126 | 126 | ||
127 | void | ||
128 | handle_message () | ||
129 | { | ||
130 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s\n", __func__); | ||
131 | } | ||
132 | |||
127 | static void | 133 | static void |
128 | send_message () | 134 | send_message () |
129 | { | 135 | { |
diff --git a/src/cadet/test_cadeT_util.c b/src/cadet/test_cadeT_util.c index bf65aca32..7f28678b9 100644 --- a/src/cadet/test_cadeT_util.c +++ b/src/cadet/test_cadeT_util.c | |||
@@ -102,6 +102,13 @@ setup_initiating_peer (void *cls, | |||
102 | { | 102 | { |
103 | struct GNUNET_CADET_Handle *cadet; | 103 | struct GNUNET_CADET_Handle *cadet; |
104 | struct GNUNET_CADET_Channel *channel; | 104 | struct GNUNET_CADET_Channel *channel; |
105 | struct GNUNET_MQ_MessageHandler msg_handlers[] = { | ||
106 | GNUNET_MQ_hd_fixed_size (message, | ||
107 | GNUNET_MESSAGE_TYPE_DUMMY, | ||
108 | struct GNUNET_MessageHeader, | ||
109 | NULL), | ||
110 | GNUNET_MQ_handler_end () | ||
111 | }; | ||
105 | 112 | ||
106 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s\n", __func__); | 113 | GNUNET_log (GNUNET_ERROR_TYPE_INFO, "%s\n", __func__); |
107 | 114 | ||
@@ -117,7 +124,7 @@ setup_initiating_peer (void *cls, | |||
117 | &hashed_portname, | 124 | &hashed_portname, |
118 | NULL, | 125 | NULL, |
119 | &disconnect_channel, | 126 | &disconnect_channel, |
120 | NULL); | 127 | msg_handlers); |
121 | test_peers[0].channel = channel; | 128 | test_peers[0].channel = channel; |
122 | 129 | ||
123 | return cadet; | 130 | return cadet; |
diff --git a/src/cadet/test_cadeT_util.h b/src/cadet/test_cadeT_util.h index b93804613..e12732d14 100644 --- a/src/cadet/test_cadeT_util.h +++ b/src/cadet/test_cadeT_util.h | |||
@@ -47,6 +47,8 @@ int | |||
47 | check_message (void *cls, | 47 | check_message (void *cls, |
48 | const struct GNUNET_MessageHeader *message); | 48 | const struct GNUNET_MessageHeader *message); |
49 | 49 | ||
50 | void handle_message (); | ||
51 | |||
50 | /** | 52 | /** |
51 | * Structure for storing information of testbed peers. | 53 | * Structure for storing information of testbed peers. |
52 | */ | 54 | */ |