GNUnet  0.11.x
Data Fields
Value Struct Reference

Entry in the hash map. More...

Collaboration diagram for Value:
[legend]

Data Fields

struct GNUNET_HashCode key
 Key for the entry. More...
 
struct GNUNET_TIME_Absolute discard_time
 Expiration time. More...
 
struct GNUNET_CONTAINER_HeapNodehn
 Corresponding node in the heap. More...
 
struct GNUNET_PeerIdentitypath_info
 Path information. More...
 
size_t size
 Payload (actual payload follows this struct) More...
 
unsigned int path_info_len
 Number of entries in path_info. More...
 
uint32_t distance
 How close is the hash to us? Determines which heap we are in! More...
 
enum GNUNET_BLOCK_Type type
 Type of the block. More...
 
const void * data
 Pointer to the value's data (allocated at the end of this struct). More...
 
struct GNUNET_CONTAINER_HeapNodeexpire_heap
 Entry for this value in the 'expire' heap. More...
 
struct GNUNET_CONTAINER_HeapNodereplication_heap
 Entry for this value in the 'replication' heap. More...
 
struct GNUNET_TIME_Absolute expiration
 Expiration time for this value. More...
 
unsigned int zero_anon_offset
 Offset of this value in the array of the 'struct ZeroAnonByType'; only used if anonymity is zero. More...
 
uint32_t size
 Number of bytes in 'data'. More...
 
uint32_t priority
 Priority of the value. More...
 
uint32_t anonymity
 Anonymity level for the value. More...
 
uint32_t replication
 Replication level for the value. More...
 

Detailed Description

Entry in the hash map.

A value that we are storing.

Definition at line 63 of file plugin_datacache_heap.c.

Field Documentation

◆ key

struct GNUNET_HashCode Value::key

◆ discard_time

struct GNUNET_TIME_Absolute Value::discard_time

Expiration time.

Definition at line 73 of file plugin_datacache_heap.c.

Referenced by get_cb(), heap_plugin_put(), and put_cb().

◆ hn

struct GNUNET_CONTAINER_HeapNode* Value::hn

Corresponding node in the heap.

Definition at line 78 of file plugin_datacache_heap.c.

Referenced by heap_plugin_put(), and put_cb().

◆ path_info

struct GNUNET_PeerIdentity* Value::path_info

Path information.

Definition at line 83 of file plugin_datacache_heap.c.

Referenced by heap_plugin_del(), heap_plugin_put(), libgnunet_plugin_datacache_heap_done(), and put_cb().

◆ size [1/2]

size_t Value::size

◆ path_info_len

unsigned int Value::path_info_len

Number of entries in path_info.

Definition at line 93 of file plugin_datacache_heap.c.

Referenced by heap_plugin_put(), and put_cb().

◆ distance

uint32_t Value::distance

How close is the hash to us? Determines which heap we are in!

Definition at line 98 of file plugin_datacache_heap.c.

Referenced by heap_plugin_put().

◆ type

enum GNUNET_BLOCK_Type Value::type

◆ data

const void* Value::data

Pointer to the value's data (allocated at the end of this struct).

Definition at line 47 of file plugin_datastore_heap.c.

Referenced by heap_plugin_put(), heap_plugin_remove_key(), remove_iterator(), and update_iterator().

◆ expire_heap

struct GNUNET_CONTAINER_HeapNode* Value::expire_heap

Entry for this value in the 'expire' heap.

Definition at line 52 of file plugin_datastore_heap.c.

Referenced by delete_value(), heap_plugin_put(), and update_iterator().

◆ replication_heap

struct GNUNET_CONTAINER_HeapNode* Value::replication_heap

Entry for this value in the 'replication' heap.

Definition at line 57 of file plugin_datastore_heap.c.

Referenced by delete_value(), heap_plugin_get_replication(), and heap_plugin_put().

◆ expiration

struct GNUNET_TIME_Absolute Value::expiration

◆ zero_anon_offset

unsigned int Value::zero_anon_offset

Offset of this value in the array of the 'struct ZeroAnonByType'; only used if anonymity is zero.

Definition at line 68 of file plugin_datastore_heap.c.

Referenced by delete_value(), and heap_plugin_put().

◆ size [2/2]

uint32_t Value::size

Number of bytes in 'data'.

Definition at line 73 of file plugin_datastore_heap.c.

◆ priority

uint32_t Value::priority

◆ anonymity

uint32_t Value::anonymity

◆ replication

uint32_t Value::replication

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