Information about a block stored in the datacache. More...
#include <gnunet_datacache_lib.h>
Data Fields | |
struct GNUNET_HashCode | key |
Key of the block. More... | |
struct GNUNET_TIME_Absolute | expiration_time |
When does the block expire? More... | |
struct GNUNET_PeerIdentity | trunc_peer |
If the path was truncated, this is the peer ID at which the path was truncated. More... | |
const struct GNUNET_DHT_PathElement * | put_path |
PUT path taken by the block, array of peer identities. More... | |
const void * | data |
Actual block data. More... | |
size_t | data_size |
Number of bytes in data. More... | |
unsigned int | put_path_length |
Length of the put_path array. More... | |
enum GNUNET_BLOCK_Type | type |
Type of the block. More... | |
enum GNUNET_DHT_RouteOption | ro |
Options for routing for the block. More... | |
Information about a block stored in the datacache.
Definition at line 60 of file gnunet_datacache_lib.h.
struct GNUNET_HashCode GNUNET_DATACACHE_Block::key |
Key of the block.
Definition at line 65 of file gnunet_datacache_lib.h.
Referenced by gnunet-chk.Chk::__init__(), gnunet-chk.AESKey::__init__(), datacache_get_iterator(), extract_result_cb(), find_closest(), forward_reply(), GDS_CLIENTS_process_get_resp(), GDS_CLIENTS_process_put(), GDS_DATACACHE_handle_put(), GDS_NEIGHBOURS_handle_put(), get_any(), get_typed(), GNUNET_DATACACHE_put(), handle_dht_local_put(), handle_dht_p2p_put(), handle_local_result(), handle_results(), heap_plugin_del(), heap_plugin_put(), libgnunet_plugin_datacache_heap_done(), postgres_plugin_put(), process(), put_action(), response_action(), sqlite_plugin_get_closest(), sqlite_plugin_put(), and gnunet-chk.Chk::uri().
struct GNUNET_TIME_Absolute GNUNET_DATACACHE_Block::expiration_time |
When does the block expire?
Definition at line 70 of file gnunet_datacache_lib.h.
Referenced by datacache_get_iterator(), extract_result_cb(), forward_reply(), GDS_CLIENTS_handle_reply(), GDS_NEIGHBOURS_handle_put(), GDS_NEIGHBOURS_handle_reply(), get_any(), get_cb(), get_typed(), handle_dht_p2p_put(), handle_dht_p2p_result(), handle_results(), heap_plugin_put(), postgres_plugin_put(), put_action(), put_cb(), response_action(), sqlite_plugin_get_closest(), and sqlite_plugin_put().
struct GNUNET_PeerIdentity GNUNET_DATACACHE_Block::trunc_peer |
If the path was truncated, this is the peer ID at which the path was truncated.
Definition at line 76 of file gnunet_datacache_lib.h.
Referenced by extract_result_cb(), forward_reply(), GDS_CLIENTS_handle_reply(), GDS_NEIGHBOURS_handle_put(), GDS_NEIGHBOURS_handle_reply(), get_any(), get_typed(), handle_dht_p2p_put(), handle_results(), postgres_plugin_put(), put_action(), response_action(), sqlite_plugin_get_closest(), and sqlite_plugin_put().
const struct GNUNET_DHT_PathElement* GNUNET_DATACACHE_Block::put_path |
PUT path taken by the block, array of peer identities.
Definition at line 81 of file gnunet_datacache_lib.h.
Referenced by extract_result_cb(), forward_reply(), GDS_CLIENTS_handle_reply(), GDS_NEIGHBOURS_handle_put(), GDS_NEIGHBOURS_handle_reply(), get_any(), get_typed(), handle_dht_p2p_put(), handle_results(), heap_plugin_put(), postgres_plugin_put(), process(), process_reply_with_path(), put_action(), put_cb(), response_action(), sqlite_plugin_get_closest(), and sqlite_plugin_put().
const void* GNUNET_DATACACHE_Block::data |
Actual block data.
Definition at line 86 of file gnunet_datacache_lib.h.
Referenced by datacache_get_iterator(), extract_result_cb(), forward_reply(), GDS_CLIENTS_handle_reply(), GDS_NEIGHBOURS_handle_put(), GDS_NEIGHBOURS_handle_reply(), get_any(), get_typed(), handle_dht_local_put(), handle_dht_p2p_put(), handle_results(), heap_plugin_put(), hello_check(), typescriptdomain.TypeScriptDomain::objects(), postgres_plugin_put(), process(), put_action(), put_cb(), httpdomain.httpdomain.HTTPDomain::resolve_xref(), response_action(), httpdomain.httpdomain.HTTPDomain::routes(), sqlite_plugin_get_closest(), and sqlite_plugin_put().
size_t GNUNET_DATACACHE_Block::data_size |
Number of bytes in data.
Definition at line 91 of file gnunet_datacache_lib.h.
Referenced by datacache_get_iterator(), extract_result_cb(), forward_reply(), GDS_CLIENTS_handle_reply(), GDS_DATACACHE_handle_put(), GDS_NEIGHBOURS_handle_put(), GDS_NEIGHBOURS_handle_reply(), get_any(), get_typed(), handle_dht_local_put(), handle_dht_p2p_put(), handle_results(), heap_plugin_del(), heap_plugin_put(), hello_check(), postgres_plugin_put(), process(), put_action(), put_cb(), response_action(), sqlite_plugin_get_closest(), and sqlite_plugin_put().
unsigned int GNUNET_DATACACHE_Block::put_path_length |
Length of the put_path array.
Definition at line 96 of file gnunet_datacache_lib.h.
Referenced by check_dht_p2p_result(), extract_result_cb(), forward_reply(), GDS_CLIENTS_handle_reply(), GDS_DATACACHE_handle_put(), GDS_NEIGHBOURS_handle_put(), GDS_NEIGHBOURS_handle_reply(), get_any(), get_typed(), handle_dht_p2p_put(), handle_results(), heap_plugin_put(), postgres_plugin_put(), process(), process_reply_with_path(), put_action(), put_cb(), response_action(), sqlite_plugin_get_closest(), and sqlite_plugin_put().
enum GNUNET_BLOCK_Type GNUNET_DATACACHE_Block::type |
Type of the block.
Definition at line 101 of file gnunet_datacache_lib.h.
Referenced by datacache_get_iterator(), extract_result_cb(), find_closest(), forward_reply(), GDS_CLIENTS_process_get_resp(), GDS_CLIENTS_process_put(), GDS_NEIGHBOURS_handle_put(), GDS_NEIGHBOURS_handle_reply(), get_any(), get_cb(), get_typed(), handle_dht_local_put(), handle_dht_p2p_put(), handle_find_local_hello(), handle_find_my_hello(), handle_results(), hello_check(), postgres_plugin_put(), process(), put_action(), put_cb(), response_action(), sqlite_plugin_get_closest(), and sqlite_plugin_put().
enum GNUNET_DHT_RouteOption GNUNET_DATACACHE_Block::ro |
Options for routing for the block.
Definition at line 106 of file gnunet_datacache_lib.h.
Referenced by check_dht_p2p_result(), extract_result_cb(), forward_reply(), GDS_CLIENTS_handle_reply(), GDS_NEIGHBOURS_handle_put(), GDS_NEIGHBOURS_handle_reply(), get_any(), get_typed(), handle_dht_local_put(), handle_dht_p2p_put(), handle_results(), put_action(), response_action(), sqlite_plugin_get_closest(), and sqlite_plugin_put().