diff options
author | Gabor X Toth <*@tg-x.net> | 2013-07-23 05:38:37 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2013-07-23 05:38:37 +0000 |
commit | 431b3a622137bfe03affbc5244cbdf63a4e27015 (patch) | |
tree | 998a286e6ae1183846c710bd9cb49c1b280208e3 /src/include/gnunet_multicast_service.h | |
parent | 51b67f6beffd8ae186229af8367a7f4220e0f01f (diff) | |
download | gnunet-431b3a622137bfe03affbc5244cbdf63a4e27015.tar.gz gnunet-431b3a622137bfe03affbc5244cbdf63a4e27015.zip |
multicast: group_member_remove()
Diffstat (limited to 'src/include/gnunet_multicast_service.h')
-rw-r--r-- | src/include/gnunet_multicast_service.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/src/include/gnunet_multicast_service.h b/src/include/gnunet_multicast_service.h index 68d4944de..202d2f26b 100644 --- a/src/include/gnunet_multicast_service.h +++ b/src/include/gnunet_multicast_service.h | |||
@@ -661,6 +661,45 @@ void | |||
661 | GNUNET_MULTICAST_member_to_origin_cancel (struct GNUNET_MULTICAST_MemberRequestHandle *rh); | 661 | GNUNET_MULTICAST_member_to_origin_cancel (struct GNUNET_MULTICAST_MemberRequestHandle *rh); |
662 | 662 | ||
663 | 663 | ||
664 | /** | ||
665 | * Handle to access multicast group operations for both the origin and members. | ||
666 | */ | ||
667 | struct GNUNET_MULTICAST_Group; | ||
668 | |||
669 | |||
670 | /** | ||
671 | * Convert a group @a origin to a @e group handle to access the @e group APIs. | ||
672 | * | ||
673 | * @param origin Group origin handle. | ||
674 | * @return Group handle, valid for as long as @a origin is valid. | ||
675 | */ | ||
676 | struct GNUNET_MULTICAST_Group * | ||
677 | GNUNET_MULTICAST_origin_get_group (struct GNUNET_MULTICAST_Origin *origin); | ||
678 | |||
679 | |||
680 | /** | ||
681 | * Convert @a member to a @e group handle to access the @e group APIs. | ||
682 | * | ||
683 | * @param member Member handle. | ||
684 | * @return Group handle, valid for as long as @a member is valid. | ||
685 | */ | ||
686 | struct GNUNET_MULTICAST_Group * | ||
687 | GNUNET_MULTICAST_member_get_group (struct GNUNET_MULTICAST_Member *member); | ||
688 | |||
689 | |||
690 | /** | ||
691 | * Remove a peer from the group. | ||
692 | * | ||
693 | * After a message was received notifying about a leaving member, remove the | ||
694 | * member from the multicast group. Fragments with a greater @a message_id than | ||
695 | * the specified one won't be transmitted to the member anymore, but the | ||
696 | * transmission of lower or equal ones will still be performed. | ||
697 | */ | ||
698 | void | ||
699 | GNUNET_MULTICAST_group_member_remove (struct GNUNET_MULTICAST_Group *group, | ||
700 | const struct GNUNET_PeerIdentity *peer, | ||
701 | uint64_t message_id); | ||
702 | |||
664 | 703 | ||
665 | #if 0 /* keep Emacsens' auto-indent happy */ | 704 | #if 0 /* keep Emacsens' auto-indent happy */ |
666 | { | 705 | { |