A sampler element sampling one PeerID at a time. More...
Data Fields | |
| struct GNUNET_CRYPTO_AuthKey | auth_key | 
| Min-wise linear permutation used by this sampler.   | |
| struct GNUNET_PeerIdentity | peer_id | 
| The PeerID this sampler currently samples.   | |
| struct GNUNET_HashCode | peer_id_hash | 
| The according hash value of this PeerID.   | |
| struct GNUNET_TIME_Absolute | last_client_request | 
| Time of last request.   | |
| enum RPS_SamplerEmpty | is_empty | 
| Flag that indicates that we are not holding a valid PeerID right now.   | |
| struct GNUNET_TIME_Absolute | birth | 
| 'Birth'   | |
| uint32_t | num_peers | 
| How many times a PeerID was put in this sampler.   | |
| uint32_t | num_change | 
| How many times this sampler changed the peer_id.   | |
| char * | file_name | 
| The file name this sampler element should log to.   | |
A sampler element sampling one PeerID at a time.
Definition at line 49 of file gnunet-service-rps_sampler_elem.h.
| 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().
| struct GNUNET_PeerIdentity RPS_SamplerElement::peer_id | 
The PeerID this sampler currently samples.
Definition at line 61 of file gnunet-service-rps_sampler_elem.h.
Referenced by RPS_sampler_count_id(), RPS_sampler_elem_next(), RPS_sampler_reinitialise_by_value(), sampler_get_rand_peer(), and sampler_mod_get_rand_peer().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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().
| 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.