aboutsummaryrefslogtreecommitdiff
path: root/src/include/gnunet_multicast_service.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-30 13:45:30 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-30 13:45:30 +0000
commitc2a70d386b29bd9210a661f41b0709cb523e2f96 (patch)
tree0f521a2c4fc1e2af63aec4ba4cc95455d59017df /src/include/gnunet_multicast_service.h
parent18750698424125b71e5c46e9c4b54fbe0ccce51c (diff)
downloadgnunet-c2a70d386b29bd9210a661f41b0709cb523e2f96.tar.gz
gnunet-c2a70d386b29bd9210a661f41b0709cb523e2f96.zip
-move messages out of API that don't belong into API
Diffstat (limited to 'src/include/gnunet_multicast_service.h')
-rw-r--r--src/include/gnunet_multicast_service.h106
1 files changed, 2 insertions, 104 deletions
diff --git a/src/include/gnunet_multicast_service.h b/src/include/gnunet_multicast_service.h
index edd4984a2..e1dec7b85 100644
--- a/src/include/gnunet_multicast_service.h
+++ b/src/include/gnunet_multicast_service.h
@@ -154,110 +154,6 @@ struct GNUNET_MULTICAST_MessageHeader
154 154
155GNUNET_NETWORK_STRUCT_END 155GNUNET_NETWORK_STRUCT_END
156 156
157GNUNET_NETWORK_STRUCT_BEGIN
158
159/**
160 * Header of a request from a member to the origin.
161 *
162 * FIXME: this struct is going to be internal.
163 */
164struct GNUNET_MULTICAST_RequestHeader
165{
166 /**
167 * Header for all requests from a member to the origin.
168 */
169 struct GNUNET_MessageHeader header;
170
171 /**
172 * Public key of the sending member.
173 */
174 struct GNUNET_CRYPTO_EccPublicKey member_key;
175
176 /**
177 * ECC signature of the request fragment.
178 *
179 * Signature must match the public key of the multicast group.
180 */
181 struct GNUNET_CRYPTO_EccSignature signature;
182
183 /**
184 * Purpose for the signature and size of the signed data.
185 */
186 struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
187
188 /**
189 * Number of the request fragment, monotonically increasing.
190 */
191 uint64_t fragment_id GNUNET_PACKED;
192
193 /**
194 * Byte offset of this @e fragment of the @e request.
195 */
196 uint64_t fragment_offset GNUNET_PACKED;
197
198 /**
199 * Number of the request this fragment belongs to.
200 *
201 * Set in GNUNET_MULTICAST_origin_to_all().
202 */
203 uint64_t request_id GNUNET_PACKED;
204
205 /**
206 * Flags for this request.
207 */
208 enum GNUNET_MULTICAST_MessageFlags flags GNUNET_PACKED;
209
210 /* Followed by request body. */
211};
212
213GNUNET_NETWORK_STRUCT_END
214
215
216GNUNET_NETWORK_STRUCT_BEGIN
217
218/**
219 * Header of a join request sent to the origin or another member.
220 *
221 * FIXME: this struct is going to be internal.
222 */
223struct GNUNET_MULTICAST_JoinRequest {
224 /**
225 * Header for the join request.
226 */
227 struct GNUNET_MessageHeader header;
228
229 /**
230 * ECC signature of the rest of the fields of the join request.
231 *
232 * Signature must match the public key of the joining member.
233 */
234 struct GNUNET_CRYPTO_EccSignature signature;
235
236 /**
237 * Purpose for the signature and size of the signed data.
238 */
239 struct GNUNET_CRYPTO_EccSignaturePurpose purpose;
240
241 /**
242 * Public key of the target group.
243 */
244 struct GNUNET_CRYPTO_EccPublicKey group_key;
245
246 /**
247 * Public key of the joining member.
248 */
249 struct GNUNET_CRYPTO_EccPublicKey member_key;
250
251 /**
252 * Peer identity of the joining member.
253 */
254 struct GNUNET_PeerIdentity member_peer;
255
256 /* Followed by request body. */
257};
258
259GNUNET_NETWORK_STRUCT_END
260
261 157
262/** 158/**
263 * Handle that identifies a join request. 159 * Handle that identifies a join request.
@@ -523,6 +419,7 @@ GNUNET_MULTICAST_replay (struct GNUNET_MULTICAST_ReplayHandle *rh,
523void 419void
524GNUNET_MULTICAST_replay_end (struct GNUNET_MULTICAST_ReplayHandle *rh); 420GNUNET_MULTICAST_replay_end (struct GNUNET_MULTICAST_ReplayHandle *rh);
525 421
422
526/** 423/**
527 * Function called to provide data for a transmission for a replay. 424 * Function called to provide data for a transmission for a replay.
528 * 425 *
@@ -533,6 +430,7 @@ typedef int
533 size_t *data_size, 430 size_t *data_size,
534 void *data); 431 void *data);
535 432
433
536/** 434/**
537 * Replay a message for the multicast group. 435 * Replay a message for the multicast group.
538 * 436 *