diff options
author | Gabor X Toth <*@tg-x.net> | 2014-05-17 10:16:15 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2014-05-17 10:16:15 +0000 |
commit | 83c058a5ea11b6d7aa05cb71963c6063cb373603 (patch) | |
tree | 30921098e391d492cf52311983348232d41d9634 /src/include | |
parent | d78b7d8a3f6cdaee244557667350da443ca76db5 (diff) | |
download | gnunet-83c058a5ea11b6d7aa05cb71963c6063cb373603.tar.gz gnunet-83c058a5ea11b6d7aa05cb71963c6063cb373603.zip |
multicast, psyc: client connections, join requests
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_protocols.h | 50 | ||||
-rw-r--r-- | src/include/gnunet_psyc_service.h | 5 | ||||
-rw-r--r-- | src/include/gnunet_signatures.h | 7 |
3 files changed, 27 insertions, 35 deletions
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index aeeeed9ea..e943b9c29 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h | |||
@@ -2338,70 +2338,60 @@ extern "C" | |||
2338 | #define GNUNET_MESSAGE_TYPE_MULTICAST_ORIGIN_START 750 | 2338 | #define GNUNET_MESSAGE_TYPE_MULTICAST_ORIGIN_START 750 |
2339 | 2339 | ||
2340 | /** | 2340 | /** |
2341 | * C->S: Stop the origin. | ||
2342 | */ | ||
2343 | #define GNUNET_MESSAGE_TYPE_MULTICAST_ORIGIN_STOP 751 | ||
2344 | |||
2345 | /** | ||
2346 | * C->S: Join group as a member. | 2341 | * C->S: Join group as a member. |
2347 | */ | 2342 | */ |
2348 | #define GNUNET_MESSAGE_TYPE_MULTICAST_MEMBER_JOIN 752 | 2343 | #define GNUNET_MESSAGE_TYPE_MULTICAST_MEMBER_JOIN 751 |
2349 | |||
2350 | /** | ||
2351 | * C->S: Part the group. | ||
2352 | */ | ||
2353 | #define GNUNET_MESSAGE_TYPE_MULTICAST_MEMBER_PART 753 | ||
2354 | |||
2355 | /** | ||
2356 | * C<->S<->T: Multicast message from the origin to all members. | ||
2357 | */ | ||
2358 | #define GNUNET_MESSAGE_TYPE_MULTICAST_MESSAGE 754 | ||
2359 | |||
2360 | /** | ||
2361 | * C<->S<->T: Unicast request from a group member to the origin. | ||
2362 | */ | ||
2363 | #define GNUNET_MESSAGE_TYPE_MULTICAST_REQUEST 755 | ||
2364 | 2344 | ||
2365 | /** | 2345 | /** |
2366 | * C<--S<->T: A peer wants to join the group. | 2346 | * C<--S<->T: A peer wants to join the group. |
2367 | * | 2347 | * |
2368 | * Unicast message to the origin or another group member. | 2348 | * Unicast message to the origin or another group member. |
2369 | */ | 2349 | */ |
2370 | #define GNUNET_MESSAGE_TYPE_MULTICAST_JOIN_REQUEST | 2350 | #define GNUNET_MESSAGE_TYPE_MULTICAST_JOIN_REQUEST 752 |
2371 | 2351 | ||
2372 | /** | 2352 | /** |
2373 | * C<->S<->T: Response to a join request. | 2353 | * C<->S<->T: Response to a join request. |
2374 | * | 2354 | * |
2375 | * Unicast message from a group member to the peer wanting to join. | 2355 | * Unicast message from a group member to the peer wanting to join. |
2376 | */ | 2356 | */ |
2377 | #define GNUNET_MESSAGE_TYPE_MULTICAST_JOIN_DECISION | 2357 | #define GNUNET_MESSAGE_TYPE_MULTICAST_JOIN_DECISION 753 |
2378 | 2358 | ||
2379 | /** | 2359 | /** |
2380 | * A peer wants to part the group. | 2360 | * A peer wants to part the group. |
2381 | */ | 2361 | */ |
2382 | #define GNUNET_MESSAGE_TYPE_MULTICAST_PART_REQUEST | 2362 | #define GNUNET_MESSAGE_TYPE_MULTICAST_PART_REQUEST 754 |
2383 | 2363 | ||
2384 | /** | 2364 | /** |
2385 | * Acknowledgement sent in response to a part request. | 2365 | * Acknowledgement sent in response to a part request. |
2386 | * | 2366 | * |
2387 | * Unicast message from a group member to the peer wanting to part. | 2367 | * Unicast message from a group member to the peer wanting to part. |
2388 | */ | 2368 | */ |
2389 | #define GNUNET_MESSAGE_TYPE_MULTICAST_PART_ACK | 2369 | #define GNUNET_MESSAGE_TYPE_MULTICAST_PART_ACK 755 |
2390 | 2370 | ||
2391 | /** | 2371 | /** |
2392 | * Group terminated. | 2372 | * Group terminated. |
2393 | */ | 2373 | */ |
2394 | #define GNUNET_MESSAGE_TYPE_MULTICAST_GROUP_END | 2374 | #define GNUNET_MESSAGE_TYPE_MULTICAST_GROUP_END 756 |
2395 | 2375 | ||
2396 | /** | 2376 | /** |
2397 | * | 2377 | * C<->S<->T: Multicast message from the origin to all members. |
2398 | */ | 2378 | */ |
2399 | #define GNUNET_MESSAGE_TYPE_MULTICAST_REPLAY_REQUEST | 2379 | #define GNUNET_MESSAGE_TYPE_MULTICAST_MESSAGE 757 |
2400 | 2380 | ||
2401 | /** | 2381 | /** |
2402 | * | 2382 | * C<->S<->T: Unicast request from a group member to the origin. |
2383 | */ | ||
2384 | #define GNUNET_MESSAGE_TYPE_MULTICAST_REQUEST 758 | ||
2385 | |||
2386 | /** | ||
2387 | * C<->S<->T: Replay request from a group member to another member. | ||
2388 | */ | ||
2389 | #define GNUNET_MESSAGE_TYPE_MULTICAST_REPLAY_REQUEST 759 | ||
2390 | |||
2391 | /** | ||
2392 | * C<->S<->T: Cancellation of a replay request. | ||
2403 | */ | 2393 | */ |
2404 | #define GNUNET_MESSAGE_TYPE_MULTICAST_REPLAY_REQUEST_CANCEL | 2394 | #define GNUNET_MESSAGE_TYPE_MULTICAST_REPLAY_REQUEST_CANCEL 760 |
2405 | 2395 | ||
2406 | 2396 | ||
2407 | 2397 | ||
diff --git a/src/include/gnunet_psyc_service.h b/src/include/gnunet_psyc_service.h index 928e05242..48c1107dc 100644 --- a/src/include/gnunet_psyc_service.h +++ b/src/include/gnunet_psyc_service.h | |||
@@ -620,9 +620,7 @@ typedef void | |||
620 | * @param message_cb Function to invoke on message parts received from the | 620 | * @param message_cb Function to invoke on message parts received from the |
621 | * channel, typically at least contains method handlers for @e join and | 621 | * channel, typically at least contains method handlers for @e join and |
622 | * @e part. | 622 | * @e part. |
623 | * @param join_cb function invoked once we have joined with the current | 623 | * @param slave_joined_cb Function invoked once we have joined the channel. |
624 | * message ID of the channel | ||
625 | * @param slave_joined_cb Function to invoke when a peer wants to join. | ||
626 | * @param cls Closure for @a message_cb and @a slave_joined_cb. | 624 | * @param cls Closure for @a message_cb and @a slave_joined_cb. |
627 | * @param method_name Method name for the join request. | 625 | * @param method_name Method name for the join request. |
628 | * @param env Environment containing transient variables for the request, or NULL. | 626 | * @param env Environment containing transient variables for the request, or NULL. |
@@ -638,7 +636,6 @@ GNUNET_PSYC_slave_join (const struct GNUNET_CONFIGURATION_Handle *cfg, | |||
638 | uint32_t relay_count, | 636 | uint32_t relay_count, |
639 | const struct GNUNET_PeerIdentity *relays, | 637 | const struct GNUNET_PeerIdentity *relays, |
640 | GNUNET_PSYC_MessageCallback message_cb, | 638 | GNUNET_PSYC_MessageCallback message_cb, |
641 | GNUNET_PSYC_JoinCallback join_cb, | ||
642 | GNUNET_PSYC_SlaveJoinCallback slave_joined_cb, | 639 | GNUNET_PSYC_SlaveJoinCallback slave_joined_cb, |
643 | void *cls, | 640 | void *cls, |
644 | const char *method_name, | 641 | const char *method_name, |
diff --git a/src/include/gnunet_signatures.h b/src/include/gnunet_signatures.h index fafe6e5ae..d875aeb6b 100644 --- a/src/include/gnunet_signatures.h +++ b/src/include/gnunet_signatures.h | |||
@@ -137,7 +137,7 @@ extern "C" | |||
137 | #define GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT 18 | 137 | #define GNUNET_SIGNATURE_PURPOSE_REGEX_ACCEPT 18 |
138 | 138 | ||
139 | /** | 139 | /** |
140 | * Signature of a multicast message. | 140 | * Signature of a multicast message sent by the origin. |
141 | */ | 141 | */ |
142 | #define GNUNET_SIGNATURE_PURPOSE_MULTICAST_MESSAGE 19 | 142 | #define GNUNET_SIGNATURE_PURPOSE_MULTICAST_MESSAGE 19 |
143 | 143 | ||
@@ -166,6 +166,11 @@ extern "C" | |||
166 | */ | 166 | */ |
167 | #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DECRYPTION 23 | 167 | #define GNUNET_SIGNATURE_PURPOSE_SECRETSHARING_DECRYPTION 23 |
168 | 168 | ||
169 | /** | ||
170 | * Signature of a multicast request sent by a member. | ||
171 | */ | ||
172 | #define GNUNET_SIGNATURE_PURPOSE_MULTICAST_REQUEST 24 | ||
173 | |||
169 | 174 | ||
170 | #if 0 /* keep Emacsens' auto-indent happy */ | 175 | #if 0 /* keep Emacsens' auto-indent happy */ |
171 | { | 176 | { |