aboutsummaryrefslogtreecommitdiff
path: root/src/experimentation/gnunet-daemon-experimentation.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/experimentation/gnunet-daemon-experimentation.h')
-rw-r--r--src/experimentation/gnunet-daemon-experimentation.h96
1 files changed, 48 insertions, 48 deletions
diff --git a/src/experimentation/gnunet-daemon-experimentation.h b/src/experimentation/gnunet-daemon-experimentation.h
index 9886f5d5d..86e41a114 100644
--- a/src/experimentation/gnunet-daemon-experimentation.h
+++ b/src/experimentation/gnunet-daemon-experimentation.h
@@ -89,54 +89,54 @@ struct Experiment
89 /* Header */ 89 /* Header */
90 /* ----------------- */ 90 /* ----------------- */
91 char *name; 91 char *name;
92 92
93 /** 93 /**
94 * Experiment issuer 94 * Experiment issuer
95 */ 95 */
96 struct GNUNET_CRYPTO_EccPublicSignKey issuer; 96 struct GNUNET_CRYPTO_EccPublicSignKey issuer;
97 97
98 /** 98 /**
99 * Experiment version as timestamp of creation 99 * Experiment version as timestamp of creation
100 */ 100 */
101 struct GNUNET_TIME_Absolute version; 101 struct GNUNET_TIME_Absolute version;
102 102
103 /** 103 /**
104 * Description 104 * Description
105 */ 105 */
106 char *description; 106 char *description;
107 107
108 /** 108 /**
109 * Required capabilities 109 * Required capabilities
110 */ 110 */
111 uint32_t required_capabilities; 111 uint32_t required_capabilities;
112 112
113 /* Experiment timing */ 113 /* Experiment timing */
114 /* ----------------- */ 114 /* ----------------- */
115 115
116 /** 116 /**
117 * When to start experiment 117 * When to start experiment
118 */ 118 */
119 struct GNUNET_TIME_Absolute start; 119 struct GNUNET_TIME_Absolute start;
120 120
121 /** 121 /**
122 * When to end experiment 122 * When to end experiment
123 */ 123 */
124 struct GNUNET_TIME_Absolute stop; 124 struct GNUNET_TIME_Absolute stop;
125 125
126 /** 126 /**
127 * How often to run experiment 127 * How often to run experiment
128 */ 128 */
129 struct GNUNET_TIME_Relative frequency; 129 struct GNUNET_TIME_Relative frequency;
130 130
131 /** 131 /**
132 * How long to run each execution 132 * How long to run each execution
133 */ 133 */
134 struct GNUNET_TIME_Relative duration; 134 struct GNUNET_TIME_Relative duration;
135 135
136 136
137 /* Experiment itself */ 137 /* Experiment itself */
138 /* ----------------- */ 138 /* ----------------- */
139 139
140 /* TBD */ 140 /* TBD */
141}; 141};
142 142
@@ -150,34 +150,34 @@ struct Node
150 * Peer id 150 * Peer id
151 */ 151 */
152 struct GNUNET_PeerIdentity id; 152 struct GNUNET_PeerIdentity id;
153 153
154 /** 154 /**
155 * Task for response timeout 155 * Task for response timeout
156 */ 156 */
157 GNUNET_SCHEDULER_TaskIdentifier timeout_task; 157 GNUNET_SCHEDULER_TaskIdentifier timeout_task;
158 158
159 /** 159 /**
160 * Core transmission handle 160 * Core transmission handle
161 */ 161 */
162 struct GNUNET_CORE_TransmitHandle *cth; 162 struct GNUNET_CORE_TransmitHandle *cth;
163 163
164 /** 164 /**
165 * Node capabilities 165 * Node capabilities
166 */ 166 */
167 uint32_t capabilities; 167 uint32_t capabilities;
168 168
169 /** 169 /**
170 * Experiment version as timestamp of creation 170 * Experiment version as timestamp of creation
171 */ 171 */
172 struct GNUNET_TIME_Absolute version; 172 struct GNUNET_TIME_Absolute version;
173 173
174 struct NodeComCtx *e_req_head; 174 struct NodeComCtx *e_req_head;
175 175
176 struct NodeComCtx *e_req_tail; 176 struct NodeComCtx *e_req_tail;
177 177
178 /** 178 /**
179 * Array of issuers accepted by this neighbor. 179 * Array of issuers accepted by this neighbor.
180 */ 180 */
181 struct GNUNET_CRYPTO_EccPublicSignKey *issuer_id; 181 struct GNUNET_CRYPTO_EccPublicSignKey *issuer_id;
182 182
183 unsigned int issuer_count; 183 unsigned int issuer_count;
@@ -198,9 +198,9 @@ GNUNET_NETWORK_STRUCT_BEGIN
198struct Experimentation_Request 198struct Experimentation_Request
199{ 199{
200 struct GNUNET_MessageHeader msg; 200 struct GNUNET_MessageHeader msg;
201 201
202 uint32_t capabilities GNUNET_PACKED; 202 uint32_t capabilities GNUNET_PACKED;
203 203
204 uint32_t issuer_count GNUNET_PACKED; 204 uint32_t issuer_count GNUNET_PACKED;
205}; 205};
206 206
@@ -215,9 +215,9 @@ struct Experimentation_Request
215struct Experimentation_Response 215struct Experimentation_Response
216{ 216{
217 struct GNUNET_MessageHeader msg; 217 struct GNUNET_MessageHeader msg;
218 218
219 uint32_t capabilities GNUNET_PACKED; 219 uint32_t capabilities GNUNET_PACKED;
220 220
221 uint32_t issuer_count GNUNET_PACKED; 221 uint32_t issuer_count GNUNET_PACKED;
222}; 222};
223 223
@@ -233,7 +233,7 @@ struct Issuer
233 233
234/** 234/**
235 * Hashmap containing valid experiment issuers 235 * Hashmap containing valid experiment issuers
236 * (the key is the hash of the respective public key, 236 * (the key is the hash of the respective public key,
237 * the values are of type `struct Issuer'). 237 * the values are of type `struct Issuer').
238 */ 238 */
239struct GNUNET_CONTAINER_MultiHashMap *valid_issuers; 239struct GNUNET_CONTAINER_MultiHashMap *valid_issuers;
@@ -246,19 +246,19 @@ struct GNUNET_CONTAINER_MultiHashMap *valid_issuers;
246struct GED_start_message 246struct GED_start_message
247{ 247{
248 struct GNUNET_MessageHeader header; 248 struct GNUNET_MessageHeader header;
249 249
250 /** 250 /**
251 * String length of experiment name following the struct 251 * String length of experiment name following the struct
252 */ 252 */
253 uint32_t len_name GNUNET_PACKED; 253 uint32_t len_name GNUNET_PACKED;
254 254
255 /** 255 /**
256 * Experiment issuer 256 * Experiment issuer
257 */ 257 */
258 struct GNUNET_CRYPTO_EccPublicSignKey issuer; 258 struct GNUNET_CRYPTO_EccPublicSignKey issuer;
259 259
260 /** 260 /**
261 * Experiment version as timestamp of creation 261 * Experiment version as timestamp of creation
262 */ 262 */
263 struct GNUNET_TIME_AbsoluteNBO version_nbo; 263 struct GNUNET_TIME_AbsoluteNBO version_nbo;
264}; 264};
@@ -267,19 +267,19 @@ struct GED_start_message
267struct GED_start_ack_message 267struct GED_start_ack_message
268{ 268{
269 struct GNUNET_MessageHeader header; 269 struct GNUNET_MessageHeader header;
270 270
271 /** 271 /**
272 * String length of experiment name following the struct 272 * String length of experiment name following the struct
273 */ 273 */
274 uint32_t len_name GNUNET_PACKED; 274 uint32_t len_name GNUNET_PACKED;
275 275
276 /** 276 /**
277 * Experiment issuer 277 * Experiment issuer
278 */ 278 */
279 struct GNUNET_CRYPTO_EccPublicSignKey issuer; 279 struct GNUNET_CRYPTO_EccPublicSignKey issuer;
280 280
281 /** 281 /**
282 * Experiment version as timestamp of creation 282 * Experiment version as timestamp of creation
283 */ 283 */
284 struct GNUNET_TIME_AbsoluteNBO version_nbo; 284 struct GNUNET_TIME_AbsoluteNBO version_nbo;
285}; 285};
@@ -288,19 +288,19 @@ struct GED_start_ack_message
288struct GED_stop_message 288struct GED_stop_message
289{ 289{
290 struct GNUNET_MessageHeader header; 290 struct GNUNET_MessageHeader header;
291 291
292 /** 292 /**
293 * String length of experiment name following the struct 293 * String length of experiment name following the struct
294 */ 294 */
295 uint32_t len_name GNUNET_PACKED; 295 uint32_t len_name GNUNET_PACKED;
296 296
297 /** 297 /**
298 * Experiment issuer 298 * Experiment issuer
299 */ 299 */
300 struct GNUNET_CRYPTO_EccPublicSignKey issuer; 300 struct GNUNET_CRYPTO_EccPublicSignKey issuer;
301 301
302 /** 302 /**
303 * Experiment version as timestamp of creation 303 * Experiment version as timestamp of creation
304 */ 304 */
305 struct GNUNET_TIME_AbsoluteNBO version_nbo; 305 struct GNUNET_TIME_AbsoluteNBO version_nbo;
306}; 306};
@@ -396,7 +396,7 @@ GED_experiments_find (const struct GNUNET_CRYPTO_EccPublicSignKey *issuer,
396 const struct GNUNET_TIME_Absolute version); 396 const struct GNUNET_TIME_Absolute version);
397 397
398 398
399typedef void (*GNUNET_EXPERIMENTATION_experiments_get_cb) (struct Node *n, 399typedef void (*GNUNET_EXPERIMENTATION_experiments_get_cb) (struct Node *n,
400 struct Experiment *e); 400 struct Experiment *e);
401 401
402 402
@@ -461,7 +461,7 @@ GED_scheduler_handle_stop (struct Node *n, struct Experiment *e);
461 */ 461 */
462void 462void
463GED_scheduler_add (struct Node *n, 463GED_scheduler_add (struct Node *n,
464 struct Experiment *e, 464 struct Experiment *e,
465 int outbound); 465 int outbound);
466 466
467 467