#include "messenger_api_list_tunnels.h"
Go to the source code of this file.
Functions | |
size_t | count_of_tunnels (const struct GNUNET_MESSENGER_ListTunnels *tunnels) |
Returns the count of peers in a list (typically from the basement of a room). More... | |
enum GNUNET_GenericReturnValue | should_connect_tunnel_to (size_t count, size_t src, size_t dst) |
Returns GNUNET_YES or GNUNET_NO to determine if the peer at index src should or should not connect outgoing to the peer at index dst to construct a complete basement with a given count of peers. More... | |
enum GNUNET_GenericReturnValue | required_connection_between (size_t count, size_t src, size_t dst) |
Returns GNUNET_YES or GNUNET_NO to determine if the peers of index src and index dst should be connected in any direction to construct a complete basement with a given count of peers. More... | |
size_t count_of_tunnels | ( | const struct GNUNET_MESSENGER_ListTunnels * | tunnels | ) |
Returns the count of peers in a list (typically from the basement of a room).
[in] | tunnels | List of peer identities |
Definition at line 29 of file gnunet-service-messenger_basement.c.
References GNUNET_assert, GNUNET_MESSENGER_ListTunnels::head, and GNUNET_MESSENGER_ListTunnel::next.
Referenced by rebuild_srv_room_basement_structure(), and recv_message_miss().
enum GNUNET_GenericReturnValue should_connect_tunnel_to | ( | size_t | count, |
size_t | src, | ||
size_t | dst | ||
) |
Returns GNUNET_YES or GNUNET_NO to determine if the peer at index src should or should not connect outgoing to the peer at index dst to construct a complete basement with a given count of peers.
[in] | count | Count of peers |
[in] | src | Source index |
[in] | dst | Destination index |
Definition at line 46 of file gnunet-service-messenger_basement.c.
References GNUNET_NO, and GNUNET_YES.
Referenced by required_connection_between().
enum GNUNET_GenericReturnValue required_connection_between | ( | size_t | count, |
size_t | src, | ||
size_t | dst | ||
) |
Returns GNUNET_YES or GNUNET_NO to determine if the peers of index src and index dst should be connected in any direction to construct a complete basement with a given count of peers.
[in] | count | Count of peers |
[in] | src | Source index |
[in] | dst | Destination index |
Definition at line 58 of file gnunet-service-messenger_basement.c.
References GNUNET_NO, GNUNET_YES, and should_connect_tunnel_to().
Referenced by rebuild_srv_room_basement_structure().