diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-09-21 10:22:37 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-09-21 10:22:37 +0000 |
commit | cf4e6f6646619f854cab70c117452d44e3355fb6 (patch) | |
tree | 8ec23ca6f76b123742b2f6b553b5a02164f49b8a /src/include/gnunet_multicast_service.h | |
parent | 34ce99c24a0b09f119da24df01caefe387f36b80 (diff) | |
download | gnunet-cf4e6f6646619f854cab70c117452d44e3355fb6.tar.gz gnunet-cf4e6f6646619f854cab70c117452d44e3355fb6.zip |
-more issues with multicast API
Diffstat (limited to 'src/include/gnunet_multicast_service.h')
-rw-r--r-- | src/include/gnunet_multicast_service.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/include/gnunet_multicast_service.h b/src/include/gnunet_multicast_service.h index f3c5b5d93..a1dbaf841 100644 --- a/src/include/gnunet_multicast_service.h +++ b/src/include/gnunet_multicast_service.h | |||
@@ -259,6 +259,13 @@ typedef void | |||
259 | * Function called whenever a group member has transmitted a request | 259 | * Function called whenever a group member has transmitted a request |
260 | * to the origin (other than joining or leaving). | 260 | * to the origin (other than joining or leaving). |
261 | * | 261 | * |
262 | * FIXME: need to distinguish between origin cancelling a message (some fragments | ||
263 | * were sent, then the rest 'discarded') and the case where we got disconnected; | ||
264 | * right now, both would mean 'msg' is NULL, but they could be quite different... | ||
265 | * So the semantics from the receiver side of | ||
266 | * GNUNET_MULTICAST_member_to_origin_cancel() are not clear here. Maybe we | ||
267 | * should do something with the flags in this case? | ||
268 | * | ||
262 | * @param cls Closure (set from GNUNET_MULTICAST_origin_start). | 269 | * @param cls Closure (set from GNUNET_MULTICAST_origin_start). |
263 | * @param sender Identity of the sender. | 270 | * @param sender Identity of the sender. |
264 | * @param req Request to the origin. | 271 | * @param req Request to the origin. |
@@ -279,6 +286,12 @@ typedef void | |||
279 | * response of the @e origin (as given to GNUNET_MULTICAST_join_decision()) and | 286 | * response of the @e origin (as given to GNUNET_MULTICAST_join_decision()) and |
280 | * then a second time with NULL to indicate that the connection failed for good. | 287 | * then a second time with NULL to indicate that the connection failed for good. |
281 | * | 288 | * |
289 | * FIXME: need to distinguish between origin cancelling a message (some fragments | ||
290 | * were sent, then the rest 'discarded') and the case where we got disconnected; | ||
291 | * right now, both would mean 'msg' is NULL, but they could be quite different... | ||
292 | * So the semantics from the receiver side of | ||
293 | * GNUNET_MULTICAST_origin_to_all_cancel() are not clear here. | ||
294 | * | ||
282 | * @param cls Closure (set from GNUNET_MULTICAST_member_join()) | 295 | * @param cls Closure (set from GNUNET_MULTICAST_member_join()) |
283 | * @param msg Message from the origin, NULL if the origin shut down | 296 | * @param msg Message from the origin, NULL if the origin shut down |
284 | * (or we were kicked out, and we should thus call | 297 | * (or we were kicked out, and we should thus call |
@@ -705,6 +718,7 @@ struct GNUNET_MULTICAST_MemberRequestHandle; | |||
705 | * @param member Membership handle. | 718 | * @param member Membership handle. |
706 | * @param message_id Application layer ID for the message. Opaque to multicast. | 719 | * @param message_id Application layer ID for the message. Opaque to multicast. |
707 | * @param size Number of bytes we want to send to origin. | 720 | * @param size Number of bytes we want to send to origin. |
721 | * FIXME: this should probably be a uint64_t? | ||
708 | * @param notify Callback to call to get the message. | 722 | * @param notify Callback to call to get the message. |
709 | * @param notify_cls Closure for @a notify. | 723 | * @param notify_cls Closure for @a notify. |
710 | * @return Handle to cancel request, NULL on error (i.e. request already pending). | 724 | * @return Handle to cancel request, NULL on error (i.e. request already pending). |