Sampler with its own array of SamplerElements. More...
#include </home/buildbot/bb-worker/worker/gnunet_firefly/build/src/contrib/service/rps/rps-sampler_common.h>
Data Fields | |
unsigned int | sampler_size |
Number of sampler elements we hold. More... | |
struct RPS_SamplerElement ** | sampler_elements |
All sampler elements in one array. More... | |
struct GNUNET_TIME_Relative | max_round_interval |
Maximum time a round takes. More... | |
uint32_t | num_peers_estim |
The estimated total number of peers in the network. More... | |
double | desired_probability |
The desired probability with which we want to have observed all peers. More... | |
double | deficiency_factor |
A factor that catches the 'bias' of a random stream of peer ids. More... | |
RPS_get_peers_type | get_peers |
Stores the function to return peers. More... | |
struct RPS_SamplerRequestHandle * | req_handle_head |
Head and tail for the DLL to store the RPS_SamplerRequestHandle. More... | |
struct RPS_SamplerRequestHandle * | req_handle_tail |
struct RPS_SamplerRequestHandleSingleInfo * | req_handle_single_head |
Head and tail for the DLL to store the RPS_SamplerRequestHandleSingleInfo. More... | |
struct RPS_SamplerRequestHandleSingleInfo * | req_handle_single_tail |
struct SamplerNotifyUpdateCTX * | notify_ctx_head |
struct SamplerNotifyUpdateCTX * | notify_ctx_tail |
Sampler with its own array of SamplerElements.
Definition at line 154 of file rps-sampler_common.h.
unsigned int RPS_Sampler::sampler_size |
Number of sampler elements we hold.
Definition at line 159 of file rps-sampler_common.h.
Referenced by RPS_sampler_count_id(), RPS_sampler_get_n_rand_peers(), RPS_sampler_get_rand_peer_info(), RPS_sampler_get_size(), RPS_sampler_reinitialise_by_value(), RPS_sampler_update(), sampler_get_rand_peer(), sampler_mod_get_rand_peer(), and sampler_resize().
struct RPS_SamplerElement** RPS_Sampler::sampler_elements |
All sampler elements in one array.
Definition at line 165 of file rps-sampler_common.h.
Referenced by RPS_sampler_count_id(), RPS_sampler_reinitialise_by_value(), RPS_sampler_update(), sampler_get_rand_peer(), sampler_mod_get_rand_peer(), and sampler_resize().
struct GNUNET_TIME_Relative RPS_Sampler::max_round_interval |
Maximum time a round takes.
Used in the context of RPS
Definition at line 172 of file rps-sampler_common.h.
Referenced by RPS_sampler_init(), RPS_sampler_mod_init(), and sampler_mod_get_rand_peer().
uint32_t RPS_Sampler::num_peers_estim |
The estimated total number of peers in the network.
Definition at line 177 of file rps-sampler_common.h.
Referenced by RPS_sampler_update_with_nw_size().
double RPS_Sampler::desired_probability |
The desired probability with which we want to have observed all peers.
Definition at line 183 of file rps-sampler_common.h.
Referenced by RPS_sampler_set_desired_probability().
double RPS_Sampler::deficiency_factor |
A factor that catches the 'bias' of a random stream of peer ids.
As introduced by Brahms: Factor between the number of unique ids in a truly random stream and number of unique ids in the gossip stream.
Definition at line 191 of file rps-sampler_common.h.
Referenced by RPS_sampler_set_deficiency_factor().
RPS_get_peers_type RPS_Sampler::get_peers |
Stores the function to return peers.
Which one it is depends on whether the Sampler is the modified one or not.
Definition at line 197 of file rps-sampler_common.h.
Referenced by RPS_sampler_get_n_rand_peers(), RPS_sampler_get_rand_peer_info(), RPS_sampler_init(), and RPS_sampler_mod_init().
struct RPS_SamplerRequestHandle* RPS_Sampler::req_handle_head |
Head and tail for the DLL to store the RPS_SamplerRequestHandle.
Definition at line 202 of file rps-sampler_common.h.
Referenced by RPS_sampler_destroy(), RPS_sampler_get_n_rand_peers(), and RPS_sampler_request_cancel().
struct RPS_SamplerRequestHandle* RPS_Sampler::req_handle_tail |
Definition at line 203 of file rps-sampler_common.h.
Referenced by RPS_sampler_get_n_rand_peers(), and RPS_sampler_request_cancel().
struct RPS_SamplerRequestHandleSingleInfo* RPS_Sampler::req_handle_single_head |
Head and tail for the DLL to store the RPS_SamplerRequestHandleSingleInfo.
Definition at line 208 of file rps-sampler_common.h.
Referenced by RPS_sampler_get_rand_peer_info(), and RPS_sampler_request_single_info_cancel().
struct RPS_SamplerRequestHandleSingleInfo* RPS_Sampler::req_handle_single_tail |
Definition at line 209 of file rps-sampler_common.h.
Referenced by RPS_sampler_get_rand_peer_info().
struct SamplerNotifyUpdateCTX* RPS_Sampler::notify_ctx_head |
Definition at line 211 of file rps-sampler_common.h.
Referenced by notify_update(), RPS_sampler_request_cancel(), RPS_sampler_request_single_info_cancel(), and sampler_notify_on_update().
struct SamplerNotifyUpdateCTX* RPS_Sampler::notify_ctx_tail |
Definition at line 212 of file rps-sampler_common.h.
Referenced by notify_update(), RPS_sampler_request_cancel(), and sampler_notify_on_update().