Peer map to store peers with specialised use-cases (push_list, pull_list, view, ...) More...
Data Fields | |
struct GNUNET_CONTAINER_MultiHashMap32 * | hash_map |
Multihashmap to be able to access a random index. More... | |
struct GNUNET_CONTAINER_MultiPeerMap * | peer_map |
Peermap to quickly check whether a peer is contained. More... | |
Peer map to store peers with specialised use-cases (push_list, pull_list, view, ...)
It is aimed for use as unordered list-like structures that can be indexed. Main use-case:
permut = GNUNET_CRYPTO_random_permute (GNUNET_CRYPTO_QUALITY_STRONG, CustomPeerMap_size (peer_map)); for (i = 0; i < some_border; i++) some_array[i] = *CustomPeerMap_get_peer_by_index (peer_map, permut[i]); for (i = some_border; i < CustomPeerMap_size (peer_map); i++) other_array[i-some_border] = *CustomPeerMap_get_peer_by_index (peer_map, permut[i]);
This list is expected to
Definition at line 57 of file gnunet-service-rps_custommap.c.
struct GNUNET_CONTAINER_MultiHashMap32* CustomPeerMap::hash_map |
Multihashmap to be able to access a random index.
Definition at line 62 of file gnunet-service-rps_custommap.c.
Referenced by CustomPeerMap_clear(), CustomPeerMap_create(), CustomPeerMap_destroy(), CustomPeerMap_get_peer_by_index(), CustomPeerMap_put(), CustomPeerMap_remove_peer(), CustomPeerMap_remove_peer_by_index(), and CustomPeerMap_size().
struct GNUNET_CONTAINER_MultiPeerMap* CustomPeerMap::peer_map |
Peermap to quickly check whether a peer is contained.
Definition at line 67 of file gnunet-service-rps_custommap.c.
Referenced by CustomPeerMap_contains_peer(), CustomPeerMap_create(), CustomPeerMap_destroy(), CustomPeerMap_get_index_pointer(), CustomPeerMap_put(), CustomPeerMap_remove_peer(), CustomPeerMap_remove_peer_by_index(), and CustomPeerMap_size().