diff options
author | Gabor X Toth <*@tg-x.net> | 2013-09-25 17:46:08 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2013-09-25 17:46:08 +0000 |
commit | ee1787f39555c2295fb9629c856f467da82d94a2 (patch) | |
tree | a72541703e26f0734e2f965ee0e7091248316a88 /src/multicast | |
parent | 7bec38c1bf3572bd01ddd064f69d1b744f7725a8 (diff) | |
download | gnunet-ee1787f39555c2295fb9629c856f467da82d94a2.tar.gz gnunet-ee1787f39555c2295fb9629c856f467da82d94a2.zip |
multicast API: stop/resume transmission
Diffstat (limited to 'src/multicast')
-rw-r--r-- | src/multicast/multicast_api.c | 30 |
1 files changed, 24 insertions, 6 deletions
diff --git a/src/multicast/multicast_api.c b/src/multicast/multicast_api.c index cc2554c7d..b49d21032 100644 --- a/src/multicast/multicast_api.c +++ b/src/multicast/multicast_api.c | |||
@@ -317,8 +317,6 @@ struct GNUNET_MULTICAST_OriginMessageHandle | |||
317 | * @param message_id Application layer ID for the message. Opaque to multicast. | 317 | * @param message_id Application layer ID for the message. Opaque to multicast. |
318 | * @param group_generation Group generation of the message. Documented in | 318 | * @param group_generation Group generation of the message. Documented in |
319 | * `struct GNUNET_MULTICAST_MessageHeader`. | 319 | * `struct GNUNET_MULTICAST_MessageHeader`. |
320 | * @param size Number of bytes to transmit. | ||
321 | * FIXME: Needed? The end of the message can be flagged with a last fragment flag. | ||
322 | * @param notify Function to call to get the message. | 320 | * @param notify Function to call to get the message. |
323 | * @param notify_cls Closure for @a notify. | 321 | * @param notify_cls Closure for @a notify. |
324 | * @return NULL on error (i.e. request already pending). | 322 | * @return NULL on error (i.e. request already pending). |
@@ -327,7 +325,6 @@ struct GNUNET_MULTICAST_OriginMessageHandle * | |||
327 | GNUNET_MULTICAST_origin_to_all (struct GNUNET_MULTICAST_Origin *origin, | 325 | GNUNET_MULTICAST_origin_to_all (struct GNUNET_MULTICAST_Origin *origin, |
328 | uint64_t message_id, | 326 | uint64_t message_id, |
329 | uint64_t group_generation, | 327 | uint64_t group_generation, |
330 | size_t size, | ||
331 | GNUNET_MULTICAST_OriginTransmitNotify notify, | 328 | GNUNET_MULTICAST_OriginTransmitNotify notify, |
332 | void *notify_cls) | 329 | void *notify_cls) |
333 | { | 330 | { |
@@ -336,6 +333,18 @@ GNUNET_MULTICAST_origin_to_all (struct GNUNET_MULTICAST_Origin *origin, | |||
336 | 333 | ||
337 | 334 | ||
338 | /** | 335 | /** |
336 | * Resume message transmission to multicast group. | ||
337 | * | ||
338 | * @param mh Request to cancel. | ||
339 | */ | ||
340 | void | ||
341 | GNUNET_MULTICAST_origin_to_all_resume (struct GNUNET_MULTICAST_OriginMessageHandle *mh) | ||
342 | { | ||
343 | |||
344 | } | ||
345 | |||
346 | |||
347 | /** | ||
339 | * Cancel request for message transmission to multicast group. | 348 | * Cancel request for message transmission to multicast group. |
340 | * | 349 | * |
341 | * @param mh Request to cancel. | 350 | * @param mh Request to cancel. |
@@ -515,8 +524,6 @@ struct GNUNET_MULTICAST_MemberRequestHandle | |||
515 | * | 524 | * |
516 | * @param member Membership handle. | 525 | * @param member Membership handle. |
517 | * @param message_id Application layer ID for the message. Opaque to multicast. | 526 | * @param message_id Application layer ID for the message. Opaque to multicast. |
518 | * @param size Number of bytes we want to send to origin. | ||
519 | * FIXME: this should probably be a uint64_t? | ||
520 | * @param notify Callback to call to get the message. | 527 | * @param notify Callback to call to get the message. |
521 | * @param notify_cls Closure for @a notify. | 528 | * @param notify_cls Closure for @a notify. |
522 | * @return Handle to cancel request, NULL on error (i.e. request already pending). | 529 | * @return Handle to cancel request, NULL on error (i.e. request already pending). |
@@ -524,7 +531,6 @@ struct GNUNET_MULTICAST_MemberRequestHandle | |||
524 | struct GNUNET_MULTICAST_MemberRequestHandle * | 531 | struct GNUNET_MULTICAST_MemberRequestHandle * |
525 | GNUNET_MULTICAST_member_to_origin (struct GNUNET_MULTICAST_Member *member, | 532 | GNUNET_MULTICAST_member_to_origin (struct GNUNET_MULTICAST_Member *member, |
526 | uint64_t message_id, | 533 | uint64_t message_id, |
527 | size_t size, | ||
528 | GNUNET_MULTICAST_MemberTransmitNotify notify, | 534 | GNUNET_MULTICAST_MemberTransmitNotify notify, |
529 | void *notify_cls) | 535 | void *notify_cls) |
530 | { | 536 | { |
@@ -533,6 +539,18 @@ GNUNET_MULTICAST_member_to_origin (struct GNUNET_MULTICAST_Member *member, | |||
533 | 539 | ||
534 | 540 | ||
535 | /** | 541 | /** |
542 | * Resume message transmission to origin. | ||
543 | * | ||
544 | * @param rh Request to cancel. | ||
545 | */ | ||
546 | void | ||
547 | GNUNET_MULTICAST_member_to_origin_resume (struct GNUNET_MULTICAST_MemberRequestHandle *rh) | ||
548 | { | ||
549 | |||
550 | } | ||
551 | |||
552 | |||
553 | /** | ||
536 | * Cancel request for message transmission to origin. | 554 | * Cancel request for message transmission to origin. |
537 | * | 555 | * |
538 | * @param rh Request to cancel. | 556 | * @param rh Request to cancel. |