diff options
author | Bart Polot <bart@net.in.tum.de> | 2012-04-20 17:18:14 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2012-04-20 17:18:14 +0000 |
commit | 90c9abc573f95de334a1f61faa089e79046d2f11 (patch) | |
tree | 89b596897cf1a17ea9c048748ec063b063f8d634 /src/dht/dht.h | |
parent | 6c889a1786be40c0d023e8971411bc327af352c6 (diff) | |
download | gnunet-90c9abc573f95de334a1f61faa089e79046d2f11.tar.gz gnunet-90c9abc573f95de334a1f61faa089e79046d2f11.zip |
- Rewritten DHT monitoring
Diffstat (limited to 'src/dht/dht.h')
-rw-r--r-- | src/dht/dht.h | 44 |
1 files changed, 43 insertions, 1 deletions
diff --git a/src/dht/dht.h b/src/dht/dht.h index 936895b83..a7126aed7 100644 --- a/src/dht/dht.h +++ b/src/dht/dht.h | |||
@@ -249,6 +249,48 @@ struct GNUNET_DHT_MonitorPutMessage | |||
249 | 249 | ||
250 | 250 | ||
251 | /** | 251 | /** |
252 | * Message to request monitoring messages, clients --> DHT service. | ||
253 | */ | ||
254 | struct GNUNET_DHT_MonitorStartMessage | ||
255 | { | ||
256 | /** | ||
257 | * Type: GNUNET_MESSAGE_TYPE_DHT_MONITOR_START | ||
258 | */ | ||
259 | struct GNUNET_MessageHeader header; | ||
260 | |||
261 | /** | ||
262 | * The type of data desired, GNUNET_BLOCK_TYPE_ANY for all. | ||
263 | */ | ||
264 | uint32_t type GNUNET_PACKED; | ||
265 | |||
266 | /** | ||
267 | * Flag whether to notify about GET messages. | ||
268 | */ | ||
269 | int16_t get GNUNET_PACKED; | ||
270 | |||
271 | /** | ||
272 | * Flag whether to notify about GET_REPONSE messages. | ||
273 | */ | ||
274 | int16_t get_resp GNUNET_PACKED; | ||
275 | |||
276 | /** | ||
277 | * Flag whether to notify about PUT messages. | ||
278 | */ | ||
279 | int16_t put GNUNET_PACKED; | ||
280 | |||
281 | /** | ||
282 | * Flag whether to use the provided key to filter messages. | ||
283 | */ | ||
284 | int16_t filter_key GNUNET_PACKED; | ||
285 | |||
286 | /** | ||
287 | * The key to filter messages by.. | ||
288 | */ | ||
289 | GNUNET_HashCode key; | ||
290 | }; | ||
291 | |||
292 | |||
293 | /** | ||
252 | * Message to monitor get requests going through peer, DHT service --> clients. | 294 | * Message to monitor get requests going through peer, DHT service --> clients. |
253 | */ | 295 | */ |
254 | struct GNUNET_DHT_MonitorGetMessage | 296 | struct GNUNET_DHT_MonitorGetMessage |
@@ -296,7 +338,7 @@ struct GNUNET_DHT_MonitorGetMessage | |||
296 | /** | 338 | /** |
297 | * Message to monitor get results going through peer, DHT service --> clients. | 339 | * Message to monitor get results going through peer, DHT service --> clients. |
298 | */ | 340 | */ |
299 | struct GNUNET_DHT_MonitorGetResultMessage | 341 | struct GNUNET_DHT_MonitorGetRespMessage |
300 | { | 342 | { |
301 | /** | 343 | /** |
302 | * Type: GNUNET_MESSAGE_TYPE_DHT_P2P_RESULT | 344 | * Type: GNUNET_MESSAGE_TYPE_DHT_P2P_RESULT |