diff options
author | Gabor X Toth <*@tg-x.net> | 2013-06-26 17:13:01 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2013-06-26 17:13:01 +0000 |
commit | bb7b311515f189f38a990892ee11baffb5608ccb (patch) | |
tree | b593225acaf9c3b1fc63e816aa66360c2202f71c /src/include/gnunet_multicast_service.h | |
parent | 2fc296b9df9bb7559f044a1769da8d2e43771b39 (diff) | |
download | gnunet-bb7b311515f189f38a990892ee11baffb5608ccb.tar.gz gnunet-bb7b311515f189f38a990892ee11baffb5608ccb.zip |
multicast message types and api docs
Diffstat (limited to 'src/include/gnunet_multicast_service.h')
-rw-r--r-- | src/include/gnunet_multicast_service.h | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/include/gnunet_multicast_service.h b/src/include/gnunet_multicast_service.h index f58d38bab..39987f043 100644 --- a/src/include/gnunet_multicast_service.h +++ b/src/include/gnunet_multicast_service.h | |||
@@ -22,6 +22,7 @@ | |||
22 | * @file include/gnunet_multicast_service.h | 22 | * @file include/gnunet_multicast_service.h |
23 | * @brief multicast service; establish tunnels to distant peers | 23 | * @brief multicast service; establish tunnels to distant peers |
24 | * @author Christian Grothoff | 24 | * @author Christian Grothoff |
25 | * @author tg(x) | ||
25 | */ | 26 | */ |
26 | 27 | ||
27 | #ifndef GNUNET_MULTICAST_SERVICE_H | 28 | #ifndef GNUNET_MULTICAST_SERVICE_H |
@@ -71,7 +72,7 @@ enum GNUNET_MULTICAST_JoinPolicy | |||
71 | * distributed to current group members. This includes the group | 72 | * distributed to current group members. This includes the group |
72 | * state as well as transient messages. | 73 | * state as well as transient messages. |
73 | */ | 74 | */ |
74 | GNUNET_MULTICAST_JP_PRIVATE = 1 | 75 | GNUNET_MULTICAST_JP_PRIVATE = 1, |
75 | 76 | ||
76 | #if IDEAS_FOR_FUTURE | 77 | #if IDEAS_FOR_FUTURE |
77 | /** | 78 | /** |
@@ -82,7 +83,13 @@ enum GNUNET_MULTICAST_JoinPolicy | |||
82 | * guaranteed, the presistent group state can be synchronized freely | 83 | * guaranteed, the presistent group state can be synchronized freely |
83 | * immediately, prior to origin confirmation. | 84 | * immediately, prior to origin confirmation. |
84 | */ | 85 | */ |
85 | GNUNET_MULTICAST_JP_OPEN = 2 | 86 | GNUNET_MULTICAST_JP_OPEN = 2, |
87 | |||
88 | /** | ||
89 | * Origin must approve membership to the group, but past messages can be | ||
90 | * freely distributed to members. | ||
91 | */ | ||
92 | GNUNET_MULTICAST_JP_CLOSED = 3, | ||
86 | #endif | 93 | #endif |
87 | 94 | ||
88 | }; | 95 | }; |
@@ -187,6 +194,11 @@ struct GNUNET_MULTICAST_MessageHeader | |||
187 | 194 | ||
188 | /** | 195 | /** |
189 | * Counter that monotonically increases whenever a member leaves the group. | 196 | * Counter that monotonically increases whenever a member leaves the group. |
197 | * | ||
198 | * It has significance in case of replay requests: when a member has missed | ||
199 | * messages and gets a replay request: in this case if the @a group_generation | ||
200 | * is still the same before and after the missed messages, it means that no | ||
201 | * @e join or @a leave operations happened during the missed messages. | ||
190 | */ | 202 | */ |
191 | uint64_t group_generation GNUNET_PACKED; | 203 | uint64_t group_generation GNUNET_PACKED; |
192 | 204 | ||