diff options
author | Bart Polot <bart@net.in.tum.de> | 2012-01-04 20:00:59 +0000 |
---|---|---|
committer | Bart Polot <bart@net.in.tum.de> | 2012-01-04 20:00:59 +0000 |
commit | 09372b5120f5905546bd4e73f02f8afeec7e1b1e (patch) | |
tree | c9f301491073ca43d34152683d7b108a52e24288 /src/dht/dht.h | |
parent | c3a877682c2ce72aa38c58642875563b918aca86 (diff) | |
download | gnunet-09372b5120f5905546bd4e73f02f8afeec7e1b1e.tar.gz gnunet-09372b5120f5905546bd4e73f02f8afeec7e1b1e.zip |
New DHT-monitor functionality
Diffstat (limited to 'src/dht/dht.h')
-rw-r--r-- | src/dht/dht.h | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/src/dht/dht.h b/src/dht/dht.h index c9fdd3479..9894be89c 100644 --- a/src/dht/dht.h +++ b/src/dht/dht.h | |||
@@ -193,6 +193,69 @@ struct GNUNET_DHT_ClientPutMessage | |||
193 | /* DATA copied to end of this message */ | 193 | /* DATA copied to end of this message */ |
194 | 194 | ||
195 | }; | 195 | }; |
196 | |||
197 | |||
198 | /** | ||
199 | * Message to monitor requests going through peer, clients <--> DHT service. | ||
200 | */ | ||
201 | struct GNUNET_DHT_MonitorMessage | ||
202 | { | ||
203 | /** | ||
204 | * Type: GNUNET_MESSAGE_TYPE_DHT_MONITOR_{GET, PUT, GET_RESP, PUT_RESP*} | ||
205 | * (*) not yet implemented, necessary for key randomization | ||
206 | */ | ||
207 | struct GNUNET_MessageHeader header; | ||
208 | |||
209 | /** | ||
210 | * The type of data in the request. | ||
211 | */ | ||
212 | uint32_t type GNUNET_PACKED; | ||
213 | |||
214 | /** | ||
215 | * Message options, actually an 'enum GNUNET_DHT_RouteOption' value. | ||
216 | */ | ||
217 | uint32_t options GNUNET_PACKED; | ||
218 | |||
219 | /** | ||
220 | * Replication level for this message | ||
221 | */ | ||
222 | uint32_t desired_replication_level GNUNET_PACKED; | ||
223 | |||
224 | /** | ||
225 | * Number of peers recorded in the outgoing path from source to the | ||
226 | * storgage location of this message. | ||
227 | */ | ||
228 | uint32_t put_path_length GNUNET_PACKED; | ||
229 | |||
230 | /** | ||
231 | * The number of peer identities recorded from the storage location | ||
232 | * to this peer. | ||
233 | */ | ||
234 | uint32_t get_path_length GNUNET_PACKED; | ||
235 | |||
236 | /** | ||
237 | * Unique ID for GET / GET responses. | ||
238 | */ | ||
239 | uint64_t unique_id GNUNET_PACKED; | ||
240 | |||
241 | /** | ||
242 | * How long should this data persist? | ||
243 | */ | ||
244 | struct GNUNET_TIME_AbsoluteNBO expiration; | ||
245 | |||
246 | /** | ||
247 | * The key to store the value under. | ||
248 | */ | ||
249 | GNUNET_HashCode key; | ||
250 | |||
251 | /* put path (if tracked) */ | ||
252 | |||
253 | /* get path (if tracked) */ | ||
254 | |||
255 | /* Payload */ | ||
256 | |||
257 | }; | ||
258 | |||
196 | GNUNET_NETWORK_STRUCT_END | 259 | GNUNET_NETWORK_STRUCT_END |
197 | 260 | ||
198 | #endif | 261 | #endif |