GNUnet  0.11.x
Data Fields
RPS_Sampler Struct Reference

Sampler with its own array of SamplerElements. More...

#include </home/handbook/gnunet/src/rps/rps-sampler_common.h>

Collaboration diagram for RPS_Sampler:
[legend]

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_SamplerRequestHandlereq_handle_head
 Head and tail for the DLL to store the RPS_SamplerRequestHandle. More...
 
struct RPS_SamplerRequestHandlereq_handle_tail
 
struct RPS_SamplerRequestHandleSingleInforeq_handle_single_head
 Head and tail for the DLL to store the RPS_SamplerRequestHandleSingleInfo. More...
 
struct RPS_SamplerRequestHandleSingleInforeq_handle_single_tail
 
struct SamplerNotifyUpdateCTXnotify_ctx_head
 
struct SamplerNotifyUpdateCTXnotify_ctx_tail
 

Detailed Description

Sampler with its own array of SamplerElements.

Definition at line 154 of file rps-sampler_common.h.

Field Documentation

◆ sampler_size

unsigned int RPS_Sampler::sampler_size

◆ sampler_elements

struct RPS_SamplerElement** RPS_Sampler::sampler_elements

◆ max_round_interval

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().

◆ num_peers_estim

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().

◆ desired_probability

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().

◆ deficiency_factor

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 prob_observed_n_peers(), and RPS_sampler_set_deficiency_factor().

◆ get_peers

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().

◆ req_handle_head

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().

◆ req_handle_tail

struct RPS_SamplerRequestHandle* RPS_Sampler::req_handle_tail

◆ req_handle_single_head

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().

◆ req_handle_single_tail

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().

◆ notify_ctx_head

struct SamplerNotifyUpdateCTX* RPS_Sampler::notify_ctx_head

◆ notify_ctx_tail

struct SamplerNotifyUpdateCTX* RPS_Sampler::notify_ctx_tail

The documentation for this struct was generated from the following file: