GNUnet  0.11.x
020.c
Go to the documentation of this file.
1 static void
3  const struct GNUNET_HashCode *key,
4  const struct GNUNET_PeerIdentity *get_path,
5  unsigned int get_path_length,
6  const struct GNUNET_PeerIdentity *put_path,
7  unsigned int put_path_length,
8  enum GNUNET_BLOCK_Type type, size_t size,
9  const void *data)
10 {
11  // Optionally:
13 }
14 
15 get_handle =
17  block_type,
18  &key,
21  NULL,
22  0,
24  cls)
25 
GNUNET_BLOCK_Type
Blocks in the datastore and the datacache must have a unique type.
static void get_result_iterator(void *cls, struct GNUNET_TIME_Absolute expiration, const struct GNUNET_HashCode *key, const struct GNUNET_PeerIdentity *get_path, unsigned int get_path_length, const struct GNUNET_PeerIdentity *put_path, unsigned int put_path_length, enum GNUNET_BLOCK_Type type, size_t size, const void *data)
Definition: 020.c:2
static unsigned int replication
static struct GNUNET_DHT_GetHandle * get_handle
Handle for the get request.
A 512-bit hashcode.
static char * expiration
Credential TTL.
Definition: gnunet-abd.c:96
void GNUNET_DHT_get_stop(struct GNUNET_DHT_GetHandle *get_handle)
Stop async DHT-get.
Definition: dht_api.c:1155
struct GNUNET_HashCode key
The key used in the DHT.
static unsigned int size
Size of the "table".
Definition: peer.c:67
The identity of the host (wraps the signing key of the peer).
struct GNUNET_DHT_GetHandle * GNUNET_DHT_get_start(struct GNUNET_DHT_Handle *handle, enum GNUNET_BLOCK_Type type, const struct GNUNET_HashCode *key, uint32_t desired_replication_level, enum GNUNET_DHT_RouteOption options, const void *xquery, size_t xquery_size, GNUNET_DHT_GetIterator iter, void *iter_cls)
Perform an asynchronous GET operation on the DHT identified.
Definition: dht_api.c:1067
enum GNUNET_TESTBED_UnderlayLinkModelType type
the type of this model
Time for absolute times used by GNUnet, in microseconds.
static unsigned int block_type
The type of the query.
uint32_t data
The data value.
dht_handle
Definition: 018.c:1