diff options
author | Gabor X Toth <*@tg-x.net> | 2014-05-22 23:05:27 +0000 |
---|---|---|
committer | Gabor X Toth <*@tg-x.net> | 2014-05-22 23:05:27 +0000 |
commit | a7100389deab562e67d22ff68961b68a62341aec (patch) | |
tree | dbafc72c162df8627e639bd5e5190d8dc321d63d /src/include/gnunet_multicast_service.h | |
parent | c3bc1d8ef6e78e543d0077a57b04ae480f1d7caf (diff) | |
download | gnunet-a7100389deab562e67d22ff68961b68a62341aec.tar.gz gnunet-a7100389deab562e67d22ff68961b68a62341aec.zip |
psyc, multicast: join decision
Diffstat (limited to 'src/include/gnunet_multicast_service.h')
-rw-r--r-- | src/include/gnunet_multicast_service.h | 26 |
1 files changed, 11 insertions, 15 deletions
diff --git a/src/include/gnunet_multicast_service.h b/src/include/gnunet_multicast_service.h index f1b8bc7e5..7ceb2e352 100644 --- a/src/include/gnunet_multicast_service.h +++ b/src/include/gnunet_multicast_service.h | |||
@@ -253,7 +253,7 @@ struct GNUNET_MULTICAST_JoinHandle; | |||
253 | * be the multicast origin) is a good candidate for building the | 253 | * be the multicast origin) is a good candidate for building the |
254 | * multicast tree. Note that it is unnecessary to specify our own | 254 | * multicast tree. Note that it is unnecessary to specify our own |
255 | * peer identity in this array. | 255 | * peer identity in this array. |
256 | * @param join_response Message to send in response to the joining peer; | 256 | * @param join_resp Message to send in response to the joining peer; |
257 | * can also be used to redirect the peer to a different group at the | 257 | * can also be used to redirect the peer to a different group at the |
258 | * application layer; this response is to be transmitted to the | 258 | * application layer; this response is to be transmitted to the |
259 | * peer that issued the request even if admission is denied. | 259 | * peer that issued the request even if admission is denied. |
@@ -263,7 +263,7 @@ GNUNET_MULTICAST_join_decision (struct GNUNET_MULTICAST_JoinHandle *jh, | |||
263 | int is_admitted, | 263 | int is_admitted, |
264 | unsigned int relay_count, | 264 | unsigned int relay_count, |
265 | const struct GNUNET_PeerIdentity *relays, | 265 | const struct GNUNET_PeerIdentity *relays, |
266 | const struct GNUNET_MessageHeader *join_response); | 266 | const struct GNUNET_MessageHeader *join_resp); |
267 | 267 | ||
268 | 268 | ||
269 | /** | 269 | /** |
@@ -272,18 +272,16 @@ GNUNET_MULTICAST_join_decision (struct GNUNET_MULTICAST_JoinHandle *jh, | |||
272 | * Implementations of this function must call GNUNET_MULTICAST_join_decision() | 272 | * Implementations of this function must call GNUNET_MULTICAST_join_decision() |
273 | * with the decision. | 273 | * with the decision. |
274 | * | 274 | * |
275 | * @param cls Closure. | 275 | * @param cls Closure. |
276 | * @param peer Identity of the member that wants to join. | 276 | * @param peer Identity of the member that wants to join. |
277 | * @param join_req Application-dependent join message from the new member | 277 | * @param member_key Requesting member's public key. |
278 | * (might, for example, contain a user, | 278 | * @param join_msg Application-dependent join message from the new member. |
279 | * bind user identity/pseudonym to peer identity, application-level | 279 | * @param jh Join handle to pass to GNUNET_MULTICAST_join_decison(). |
280 | * message to origin, etc.). | ||
281 | * @param jh Join handle to pass to GNUNET_MULTICAST_join_decison(). | ||
282 | */ | 280 | */ |
283 | typedef void | 281 | typedef void |
284 | (*GNUNET_MULTICAST_JoinCallback) (void *cls, | 282 | (*GNUNET_MULTICAST_JoinCallback) (void *cls, |
285 | const struct GNUNET_CRYPTO_EddsaPublicKey *member_key, | 283 | const struct GNUNET_CRYPTO_EddsaPublicKey *member_key, |
286 | const struct GNUNET_MessageHeader *join_req, | 284 | const struct GNUNET_MessageHeader *join_msg, |
287 | struct GNUNET_MULTICAST_JoinHandle *jh); | 285 | struct GNUNET_MULTICAST_JoinHandle *jh); |
288 | 286 | ||
289 | 287 | ||
@@ -652,7 +650,7 @@ GNUNET_MULTICAST_origin_stop (struct GNUNET_MULTICAST_Origin *origin); | |||
652 | * Join a multicast group. | 650 | * Join a multicast group. |
653 | * | 651 | * |
654 | * The entity joining is always the local peer. Further information about the | 652 | * The entity joining is always the local peer. Further information about the |
655 | * candidate can be provided in the @a join_request message. If the join fails, the | 653 | * candidate can be provided in @a join_msg. If the join fails, the |
656 | * @a message_cb is invoked with a (failure) response and then with NULL. If | 654 | * @a message_cb is invoked with a (failure) response and then with NULL. If |
657 | * the join succeeds, outstanding (state) messages and ongoing multicast | 655 | * the join succeeds, outstanding (state) messages and ongoing multicast |
658 | * messages will be given to the @a message_cb until the member decides to part | 656 | * messages will be given to the @a message_cb until the member decides to part |
@@ -671,10 +669,8 @@ GNUNET_MULTICAST_origin_stop (struct GNUNET_MULTICAST_Origin *origin); | |||
671 | * @param relays Peer identities of members of the group, which serve as relays | 669 | * @param relays Peer identities of members of the group, which serve as relays |
672 | * and can be used to join the group at. and send the @a join_request to. | 670 | * and can be used to join the group at. and send the @a join_request to. |
673 | * If empty, the @a join_request is sent directly to the @a origin. | 671 | * If empty, the @a join_request is sent directly to the @a origin. |
674 | * @param join_request Application-dependent join request to be passed to the peer | 672 | * @param join_msg Application-dependent join message to be passed to the |
675 | * @a relay (might, for example, contain a user, bind user | 673 | * @a origin. |
676 | * identity/pseudonym to peer identity, application-level message to | ||
677 | * origin, etc.). | ||
678 | * @param join_cb Function called to approve / disapprove joining of a peer. | 674 | * @param join_cb Function called to approve / disapprove joining of a peer. |
679 | * @param mem_test_cb Function multicast can use to test group membership. | 675 | * @param mem_test_cb Function multicast can use to test group membership. |
680 | * @param replay_frag_cb Function that can be called to replay message fragments | 676 | * @param replay_frag_cb Function that can be called to replay message fragments |