aboutsummaryrefslogtreecommitdiff
path: root/doc/tutorial/examples/026.c
diff options
context:
space:
mode:
authorxrs <xrs@mail36.net>2018-11-03 12:46:25 +0100
committerxrs <xrs@mail36.net>2018-11-03 12:46:25 +0100
commitcf4870390de2ff9ef4befc12aeb67aba538af385 (patch)
treedb33bd658a80aa674ea3386fd5877cda66607b23 /doc/tutorial/examples/026.c
parent2770964bdd8f33c081e3b22c7295e7949e525188 (diff)
parent30ecc23f94aff98f1cfde23a82b455693f8aec15 (diff)
downloadgnunet-cf4870390de2ff9ef4befc12aeb67aba538af385.tar.gz
gnunet-cf4870390de2ff9ef4befc12aeb67aba538af385.zip
Merge branch 'master' of ssh://gnunet.org/gnunet
Diffstat (limited to 'doc/tutorial/examples/026.c')
-rw-r--r--doc/tutorial/examples/026.c52
1 files changed, 52 insertions, 0 deletions
diff --git a/doc/tutorial/examples/026.c b/doc/tutorial/examples/026.c
new file mode 100644
index 000000000..264e0b6b9
--- /dev/null
+++ b/doc/tutorial/examples/026.c
@@ -0,0 +1,52 @@
1static void
2get_callback (void *cls,
3 enum GNUNET_DHT_RouteOption options,
4 enum GNUNET_BLOCK_Type type,
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
14static void
15get_resp_callback (void *cls,
16 enum GNUNET_BLOCK_Type type,
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
29static void
30put_callback (void *cls,
31 enum GNUNET_DHT_RouteOption options,
32 enum GNUNET_BLOCK_Type type,
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
45monitor_handle = GNUNET_DHT_monitor_start (dht_handle,
46 block_type,
47 key,
48 &get_callback,
49 &get_resp_callback,
50 &put_callback,
51 cls);
52