GNUnet 0.21.1
RPS_SamplerElement Struct Reference

A sampler element sampling one PeerID at a time. More...

#include </home/buildbot/bb-worker/worker/gnunet_firefly/build/src/contrib/service/rps/gnunet-service-rps_sampler_elem.h>

Collaboration diagram for RPS_SamplerElement:
[legend]

Data Fields

struct GNUNET_CRYPTO_AuthKey auth_key
 Min-wise linear permutation used by this sampler. More...
 
struct GNUNET_PeerIdentity peer_id
 The PeerID this sampler currently samples. More...
 
struct GNUNET_HashCode peer_id_hash
 The according hash value of this PeerID. More...
 
struct GNUNET_TIME_Absolute last_client_request
 Time of last request. More...
 
enum RPS_SamplerEmpty is_empty
 Flag that indicates that we are not holding a valid PeerID right now. More...
 
struct GNUNET_TIME_Absolute birth
 'Birth' More...
 
uint32_t num_peers
 How many times a PeerID was put in this sampler. More...
 
uint32_t num_change
 How many times this sampler changed the peer_id. More...
 
char * file_name
 The file name this sampler element should log to. More...
 

Detailed Description

A sampler element sampling one PeerID at a time.

Definition at line 49 of file gnunet-service-rps_sampler_elem.h.

Field Documentation

◆ auth_key

struct GNUNET_CRYPTO_AuthKey RPS_SamplerElement::auth_key

Min-wise linear permutation used by this sampler.

This is an key later used by a hmac.

Definition at line 56 of file gnunet-service-rps_sampler_elem.h.

Referenced by RPS_sampler_elem_next(), RPS_sampler_elem_reinit(), and RPS_sampler_elem_set().

◆ peer_id

struct GNUNET_PeerIdentity RPS_SamplerElement::peer_id

◆ peer_id_hash

struct GNUNET_HashCode RPS_SamplerElement::peer_id_hash

The according hash value of this PeerID.

Definition at line 66 of file gnunet-service-rps_sampler_elem.h.

Referenced by RPS_sampler_elem_next().

◆ last_client_request

struct GNUNET_TIME_Absolute RPS_SamplerElement::last_client_request

Time of last request.

Definition at line 72 of file gnunet-service-rps_sampler_elem.h.

Referenced by RPS_sampler_elem_reinit(), and sampler_mod_get_rand_peer().

◆ is_empty

enum RPS_SamplerEmpty RPS_SamplerElement::is_empty

Flag that indicates that we are not holding a valid PeerID right now.

Definition at line 77 of file gnunet-service-rps_sampler_elem.h.

Referenced by RPS_sampler_count_id(), RPS_sampler_elem_next(), RPS_sampler_elem_reinit(), sampler_get_rand_peer(), and sampler_mod_get_rand_peer().

◆ birth

struct GNUNET_TIME_Absolute RPS_SamplerElement::birth

'Birth'

Definition at line 82 of file gnunet-service-rps_sampler_elem.h.

Referenced by RPS_sampler_elem_reinit().

◆ num_peers

uint32_t RPS_SamplerElement::num_peers

How many times a PeerID was put in this sampler.

Definition at line 87 of file gnunet-service-rps_sampler_elem.h.

Referenced by RPS_sampler_elem_next(), RPS_sampler_elem_reinit(), sampler_get_rand_peer(), and sampler_mod_get_rand_peer().

◆ num_change

uint32_t RPS_SamplerElement::num_change

How many times this sampler changed the peer_id.

Definition at line 92 of file gnunet-service-rps_sampler_elem.h.

Referenced by RPS_sampler_elem_next(), and RPS_sampler_elem_reinit().

◆ file_name

char* RPS_SamplerElement::file_name

The file name this sampler element should log to.

Definition at line 97 of file gnunet-service-rps_sampler_elem.h.


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