diff options
author | Nathan S. Evans <evans@in.tum.de> | 2010-04-04 14:14:15 +0000 |
---|---|---|
committer | Nathan S. Evans <evans@in.tum.de> | 2010-04-04 14:14:15 +0000 |
commit | 90c0d0137a71dc752066ae2922ae0dedf6f8b63e (patch) | |
tree | 7a92db44e539cd98ac239e70591c77507a6ec924 /src/dht/dht.h | |
parent | f5ee95ef07151a06778fa02a6d74689dcbb0bdf5 (diff) | |
download | gnunet-90c0d0137a71dc752066ae2922ae0dedf6f8b63e.tar.gz gnunet-90c0d0137a71dc752066ae2922ae0dedf6f8b63e.zip |
service does simple put and get into datacache, test case verifies it works
Diffstat (limited to 'src/dht/dht.h')
-rw-r--r-- | src/dht/dht.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/dht/dht.h b/src/dht/dht.h index 68591a97e..6c2f4cbd8 100644 --- a/src/dht/dht.h +++ b/src/dht/dht.h | |||
@@ -30,7 +30,8 @@ | |||
30 | #define DEBUG_DHT GNUNET_NO | 30 | #define DEBUG_DHT GNUNET_NO |
31 | 31 | ||
32 | typedef void (*GNUNET_DHT_MessageReceivedHandler) (void *cls, | 32 | typedef void (*GNUNET_DHT_MessageReceivedHandler) (void *cls, |
33 | struct GNUNET_MessageHeader *msg); | 33 | struct GNUNET_MessageHeader |
34 | * msg); | ||
34 | 35 | ||
35 | /** | 36 | /** |
36 | * Generic DHT message, wrapper for other message types | 37 | * Generic DHT message, wrapper for other message types |
@@ -159,6 +160,11 @@ struct GNUNET_DHT_GetResultMessage | |||
159 | GNUNET_HashCode key; | 160 | GNUNET_HashCode key; |
160 | 161 | ||
161 | /** | 162 | /** |
163 | * When does this entry expire? | ||
164 | */ | ||
165 | struct GNUNET_TIME_Absolute expiration; | ||
166 | |||
167 | /** | ||
162 | * The size of the data, appended to the end of this message. | 168 | * The size of the data, appended to the end of this message. |
163 | */ | 169 | */ |
164 | size_t data_size; | 170 | size_t data_size; |