aboutsummaryrefslogtreecommitdiff
path: root/src/dht/gnunet-service-dht_clients.h
diff options
context:
space:
mode:
authorBart Polot <bart@net.in.tum.de>2012-01-04 20:00:59 +0000
committerBart Polot <bart@net.in.tum.de>2012-01-04 20:00:59 +0000
commit09372b5120f5905546bd4e73f02f8afeec7e1b1e (patch)
treec9f301491073ca43d34152683d7b108a52e24288 /src/dht/gnunet-service-dht_clients.h
parentc3a877682c2ce72aa38c58642875563b918aca86 (diff)
downloadgnunet-09372b5120f5905546bd4e73f02f8afeec7e1b1e.tar.gz
gnunet-09372b5120f5905546bd4e73f02f8afeec7e1b1e.zip
New DHT-monitor functionality
Diffstat (limited to 'src/dht/gnunet-service-dht_clients.h')
-rw-r--r--src/dht/gnunet-service-dht_clients.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/dht/gnunet-service-dht_clients.h b/src/dht/gnunet-service-dht_clients.h
index 21b2343e7..a8241d289 100644
--- a/src/dht/gnunet-service-dht_clients.h
+++ b/src/dht/gnunet-service-dht_clients.h
@@ -57,6 +57,35 @@ GDS_CLIENTS_handle_reply (struct GNUNET_TIME_Absolute expiration,
57 57
58 58
59/** 59/**
60 * Check if some client is monitoring messages of this type and notify
61 * him in that case.
62 *
63 * @param mtype Type of the DHT message.
64 * @param exp When will this value expire.
65 * @param key Key of the result/request.
66 * @param get_path Peers on reply path (or NULL if not recorded).
67 * @param get_path_length number of entries in get_path.
68 * @param put_path peers on the PUT path (or NULL if not recorded).
69 * @param put_path_length number of entries in get_path.
70 * @param desired_replication_level Desired replication level.
71 * @param type Type of the result/request.
72 * @param data Pointer to the result data.
73 * @param size Number of bytes in data.
74 */
75void
76GDS_CLIENTS_process_monitor (uint16_t mtype,
77 const struct GNUNET_TIME_Absolute exp,
78 const GNUNET_HashCode *key,
79 uint32_t putl,
80 const struct GNUNET_PeerIdentity *put_path,
81 uint32_t getl,
82 const struct GNUNET_PeerIdentity *get_path,
83 uint32_t replevel,
84 enum GNUNET_BLOCK_Type type,
85 const struct GNUNET_MessageHeader *data,
86 uint16_t size);
87
88/**
60 * Initialize client subsystem. 89 * Initialize client subsystem.
61 * 90 *
62 * @param server the initialized server 91 * @param server the initialized server