![]() |
GNUnet
0.11.x
|
GNUnet MESSENGER service. More...
#include "platform.h"
#include "gnunet_cadet_service.h"
#include "gnunet_container_lib.h"
#include "gnunet_crypto_lib.h"
Go to the source code of this file.
Functions | |
void | delayed_disconnect_channel (struct GNUNET_CADET_Channel *channel) |
Starts an urgent task to close a CADET channel asynchronously. More... | |
int | generate_free_member_id (struct GNUNET_ShortHashCode *id, const struct GNUNET_CONTAINER_MultiShortmap *members) |
Tries to generate an unused member id and store it into the id parameter. More... | |
GNUnet MESSENGER service.
Definition in file gnunet-service-messenger_util.h.
void delayed_disconnect_channel | ( | struct GNUNET_CADET_Channel * | channel | ) |
Starts an urgent task to close a CADET channel asynchronously.
channel | Channel |
Definition at line 38 of file gnunet-service-messenger_util.c.
References callback_close_channel(), GNUNET_SCHEDULER_add_delayed_with_priority(), GNUNET_SCHEDULER_PRIORITY_URGENT, and GNUNET_TIME_relative_get_zero_().
Referenced by bind_tunnel(), callback_room_connect(), and disconnect_tunnel().
int generate_free_member_id | ( | struct GNUNET_ShortHashCode * | id, |
const struct GNUNET_CONTAINER_MultiShortmap * | members | ||
) |
Tries to generate an unused member id and store it into the id parameter.
A map containing all currently used member ids is used to check against.
[out] | id | New member id |
members | Map of member ids |
Definition at line 45 of file gnunet-service-messenger_util.c.
References GNUNET_CONTAINER_multishortmap_contains(), GNUNET_CONTAINER_multishortmap_size(), GNUNET_CRYPTO_QUALITY_STRONG, GNUNET_CRYPTO_random_block(), GNUNET_NO, and GNUNET_YES.
Referenced by create_message_info(), generate_room_member_id(), and generate_service_new_member_id().