aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_multicast_service.h
diff options
context:
space:
mode:
authorGabor X Toth <*@tg-x.net>2013-08-12 16:57:49 +0000
committerGabor X Toth <*@tg-x.net>2013-08-12 16:57:49 +0000
commit544201a6bb7ec4480619f576f388d84883895de0 (patch)
tree8bb90aa95bcf2551807fe154bf3bb6b3dc34ff20 /src/include/gnunet_multicast_service.h
parent99206c12844f13722688589530244ac7c56aab63 (diff)
downloadgnunet-544201a6bb7ec4480619f576f388d84883895de0.tar.gz
gnunet-544201a6bb7ec4480619f576f388d84883895de0.zip
psyc/store: added effective_since msg ID for specifying when a membership change went into effect; psyc/social: added state_reset/clear_objects flag for message sending functions
Diffstat (limited to 'src/include/gnunet_multicast_service.h')
-rw-r--r--src/include/gnunet_multicast_service.h31
1 files changed, 6 insertions, 25 deletions
diff --git a/src/include/gnunet_multicast_service.h b/src/include/gnunet_multicast_service.h
index 16c8ae740..418afd34b 100644
--- a/src/include/gnunet_multicast_service.h
+++ b/src/include/gnunet_multicast_service.h
@@ -171,15 +171,6 @@ struct GNUNET_MULTICAST_MessageHeader
171 struct GNUNET_CRYPTO_EccSignature signature; 171 struct GNUNET_CRYPTO_EccSignature signature;
172 172
173 /** 173 /**
174 * Signature of the multicast message fragment.
175 *
176 * FIXME: not strictly necessary, the size is already in the MessageHeader
177 * (minus the unsigned fields), and we could implicitly associate
178 * a sig. purpose with the message type in the header.
179 */
180 struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
181
182 /**
183 * Number of the message fragment, monotonically increasing. 174 * Number of the message fragment, monotonically increasing.
184 */ 175 */
185 uint64_t fragment_id GNUNET_PACKED; 176 uint64_t fragment_id GNUNET_PACKED;
@@ -221,32 +212,17 @@ struct GNUNET_MULTICAST_MessageHeader
221 */ 212 */
222 enum GNUNET_MULTICAST_MessageFlags flags GNUNET_PACKED; 213 enum GNUNET_MULTICAST_MessageFlags flags GNUNET_PACKED;
223 214
224 /**
225 * Header for the message body.
226 *
227 * Three message types are specifically understood by multicast, namely "peer
228 * join", "peer part", and "group terminated". Multicast will use those
229 * messages to update its list of candidates for content distribution. All
230 * other message types are application-specific.
231 *
232 * FIXME: Needed? The payload could have its own message header already,
233 * multicast does not actually need it.
234 * Also, we have no message type argument for origin_to_all(),
235 */
236 struct GNUNET_MessageHeader body;
237
238 /* Followed by message body. */ 215 /* Followed by message body. */
239}; 216};
240 217
241GNUNET_NETWORK_STRUCT_END 218GNUNET_NETWORK_STRUCT_END
242 219
243
244GNUNET_NETWORK_STRUCT_BEGIN 220GNUNET_NETWORK_STRUCT_BEGIN
245 221
246/** 222/**
247 * Header of a request from a member to the origin. 223 * Header of a request from a member to the origin.
248 * 224 *
249 * FIXME: this is going to be internal. 225 * FIXME: this struct is going to be internal.
250 */ 226 */
251struct GNUNET_MULTICAST_RequestHeader 227struct GNUNET_MULTICAST_RequestHeader
252{ 228{
@@ -297,6 +273,11 @@ GNUNET_NETWORK_STRUCT_END
297 273
298GNUNET_NETWORK_STRUCT_BEGIN 274GNUNET_NETWORK_STRUCT_BEGIN
299 275
276/**
277 * Header of a join request sent to the origin or another member.
278 *
279 * FIXME: this struct is going to be internal.
280 */
300struct GNUNET_MULTICAST_JoinRequest { 281struct GNUNET_MULTICAST_JoinRequest {
301 /** 282 /**
302 * Header for the join request. 283 * Header for the join request.