GNUnet  0.11.x
026.c
Go to the documentation of this file.
1 static void
5  uint32_t hop_count,
6  uint32_t desired_replication_level,
7  unsigned int path_length,
8  const struct GNUNET_PeerIdentity *path,
9  const struct GNUNET_HashCode * key)
10 {
11 }
12 
13 
14 static void
17  const struct GNUNET_PeerIdentity *get_path,
18  unsigned int get_path_length,
19  const struct GNUNET_PeerIdentity *put_path,
20  unsigned int put_path_length,
21  struct GNUNET_TIME_Absolute exp,
22  const struct GNUNET_HashCode * key,
23  const void *data,
24  size_t size)
25 {
26 }
27 
28 
29 static void
33  uint32_t hop_count,
34  uint32_t desired_replication_level,
35  unsigned int path_length,
36  const struct GNUNET_PeerIdentity *path,
37  struct GNUNET_TIME_Absolute exp,
38  const struct GNUNET_HashCode * key,
39  const void *data,
40  size_t size)
41 {
42 }
43 
44 
46  block_type,
47  key,
48  &get_callback,
50  &put_callback,
51  cls);
52 
struct GNUNET_GETOPT_CommandLineOption options[]
Definition: 002.c:5
GNUNET_BLOCK_Type
Blocks in the datastore and the datacache must have a unique type.
monitor_handle
Definition: 026.c:45
void * cls
Closure for all of the callbacks.
struct GNUNET_DHT_MonitorHandle * GNUNET_DHT_monitor_start(struct GNUNET_DHT_Handle *handle, enum GNUNET_BLOCK_Type type, const struct GNUNET_HashCode *key, GNUNET_DHT_MonitorGetCB get_cb, GNUNET_DHT_MonitorGetRespCB get_resp_cb, GNUNET_DHT_MonitorPutCB put_cb, void *cb_cls)
Start monitoring the local DHT service.
Definition: dht_api.c:1200
static void get_callback(void *cls, enum GNUNET_DHT_RouteOption options, enum GNUNET_BLOCK_Type type, uint32_t hop_count, uint32_t desired_replication_level, unsigned int path_length, const struct GNUNET_PeerIdentity *path, const struct GNUNET_HashCode *key)
Definition: 026.c:2
A 512-bit hashcode.
GNUNET_DHT_RouteOption
Options for routing.
struct GNUNET_HashCode key
The key used in the DHT.
static unsigned int size
Size of the "table".
Definition: peer.c:67
static void put_callback(void *cls, enum GNUNET_DHT_RouteOption options, enum GNUNET_BLOCK_Type type, uint32_t hop_count, uint32_t desired_replication_level, unsigned int path_length, const struct GNUNET_PeerIdentity *path, struct GNUNET_TIME_Absolute exp, const struct GNUNET_HashCode *key, const void *data, size_t size)
Definition: 026.c:30
The identity of the host (wraps the signing key of the peer).
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.
static void get_resp_callback(void *cls, enum GNUNET_BLOCK_Type type, const struct GNUNET_PeerIdentity *get_path, unsigned int get_path_length, const struct GNUNET_PeerIdentity *put_path, unsigned int put_path_length, struct GNUNET_TIME_Absolute exp, const struct GNUNET_HashCode *key, const void *data, size_t size)
Definition: 026.c:15
dht_handle
Definition: 018.c:1