diff options
author | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2017-12-02 22:34:21 +0100 |
---|---|---|
committer | Schanzenbach, Martin <martin.schanzenbach@aisec.fraunhofer.de> | 2017-12-02 22:34:21 +0100 |
commit | b16fa2d88aabb18f222b40136d6ace68ffc104c6 (patch) | |
tree | 6d46f086f018b6e6c169a8d8312b5990c33c3561 /doc/documentation/tutorial-examples/026.c | |
parent | a9a7ac802811e76e33b54040bf31f00ea9438cea (diff) | |
parent | 862e488e08ca71db56dedd59059c5bb1a8c130a5 (diff) |
Merge remote-tracking branch 'origin/master' into identity_abe
Diffstat (limited to 'doc/documentation/tutorial-examples/026.c')
-rw-r--r-- | doc/documentation/tutorial-examples/026.c | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/doc/documentation/tutorial-examples/026.c b/doc/documentation/tutorial-examples/026.c new file mode 100644 index 0000000000..264e0b6b97 --- /dev/null +++ b/doc/documentation/tutorial-examples/026.c @@ -0,0 +1,52 @@ +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) +{ +} + + +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) +{ +} + + +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) +{ +} + + +monitor_handle = GNUNET_DHT_monitor_start (dht_handle, + block_type, + key, + &get_callback, + &get_resp_callback, + &put_callback, + cls); + |