diff options
author | Christian Grothoff <christian@grothoff.org> | 2014-11-27 13:55:23 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2014-11-27 13:55:23 +0000 |
commit | e98619f67a3e1ddf4962c20f77c7a1a669345eaa (patch) | |
tree | 50f3a427277571036043bde17e11f8b85fd2b4d6 /src/set/set.h | |
parent | 1d96a7f8dc2aa6311eae76e60a92eb2a2b397fe2 (diff) | |
download | gnunet-e98619f67a3e1ddf4962c20f77c7a1a669345eaa.tar.gz gnunet-e98619f67a3e1ddf4962c20f77c7a1a669345eaa.zip |
adding logic to allow GNUNET_SET_iterate_cancel
Diffstat (limited to 'src/set/set.h')
-rw-r--r-- | src/set/set.h | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/src/set/set.h b/src/set/set.h index 01c96896d..944881b63 100644 --- a/src/set/set.h +++ b/src/set/set.h | |||
@@ -29,12 +29,6 @@ | |||
29 | #include "platform.h" | 29 | #include "platform.h" |
30 | #include "gnunet_common.h" | 30 | #include "gnunet_common.h" |
31 | 31 | ||
32 | /** | ||
33 | * FIXME | ||
34 | */ | ||
35 | #define GNUNET_SET_ACK_WINDOW 10 | ||
36 | |||
37 | |||
38 | GNUNET_NETWORK_STRUCT_BEGIN | 32 | GNUNET_NETWORK_STRUCT_BEGIN |
39 | 33 | ||
40 | /** | 34 | /** |
@@ -266,6 +260,10 @@ struct GNUNET_SET_CancelMessage | |||
266 | }; | 260 | }; |
267 | 261 | ||
268 | 262 | ||
263 | /** | ||
264 | * Set element transmitted by service to client in response to a set | ||
265 | * iteration request. | ||
266 | */ | ||
269 | struct GNUNET_SET_IterResponseMessage | 267 | struct GNUNET_SET_IterResponseMessage |
270 | { | 268 | { |
271 | /** | 269 | /** |
@@ -274,6 +272,12 @@ struct GNUNET_SET_IterResponseMessage | |||
274 | struct GNUNET_MessageHeader header; | 272 | struct GNUNET_MessageHeader header; |
275 | 273 | ||
276 | /** | 274 | /** |
275 | * To which set iteration does this reponse belong to? First | ||
276 | * iteration (per client) has counter zero. Wraps around. | ||
277 | */ | ||
278 | uint16_t iteration_id GNUNET_PACKED; | ||
279 | |||
280 | /** | ||
277 | * Type of the element attachted to the message, | 281 | * Type of the element attachted to the message, |
278 | * if any. | 282 | * if any. |
279 | */ | 283 | */ |
@@ -282,6 +286,10 @@ struct GNUNET_SET_IterResponseMessage | |||
282 | /* rest: element */ | 286 | /* rest: element */ |
283 | }; | 287 | }; |
284 | 288 | ||
289 | |||
290 | /** | ||
291 | * Client acknowledges receiving element in iteration. | ||
292 | */ | ||
285 | struct GNUNET_SET_IterAckMessage | 293 | struct GNUNET_SET_IterAckMessage |
286 | { | 294 | { |
287 | /** | 295 | /** |