aboutsummaryrefslogtreecommitdiff
path: root/src/dht/dht.h
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2012-04-26 16:56:00 +0000
committerChristian Grothoff <christian@grothoff.org>2012-04-26 16:56:00 +0000
commit4757258de33285fed2aa318c374dcdbf586c29f0 (patch)
tree283fa337cdaa54fbb3bbf08c937fdb6467c2b5d1 /src/dht/dht.h
parent506d42b2ba6eb104e64fd0c8889ea7233a9b96b3 (diff)
downloadgnunet-4757258de33285fed2aa318c374dcdbf586c29f0.tar.gz
gnunet-4757258de33285fed2aa318c374dcdbf586c29f0.zip
-fixing #2277
Diffstat (limited to 'src/dht/dht.h')
-rw-r--r--src/dht/dht.h29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/dht/dht.h b/src/dht/dht.h
index 373bc7b82..07cd18296 100644
--- a/src/dht/dht.h
+++ b/src/dht/dht.h
@@ -181,6 +181,11 @@ struct GNUNET_DHT_ClientPutMessage
181 uint32_t desired_replication_level GNUNET_PACKED; 181 uint32_t desired_replication_level GNUNET_PACKED;
182 182
183 /** 183 /**
184 * Unique ID for the PUT message.
185 */
186 uint64_t unique_id GNUNET_PACKED;
187
188 /**
184 * How long should this data persist? 189 * How long should this data persist?
185 */ 190 */
186 struct GNUNET_TIME_AbsoluteNBO expiration; 191 struct GNUNET_TIME_AbsoluteNBO expiration;
@@ -196,6 +201,30 @@ struct GNUNET_DHT_ClientPutMessage
196 201
197 202
198/** 203/**
204 * Message to confirming receipt of PUT, sent from DHT service to clients.
205 */
206struct GNUNET_DHT_ClientPutConfirmationMessage
207{
208 /**
209 * Type: GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT_OK
210 */
211 struct GNUNET_MessageHeader header;
212
213 /**
214 * Always zero.
215 */
216 uint32_t reserved GNUNET_PACKED;
217
218 /**
219 * Unique ID from the PUT message that is being confirmed.
220 */
221 uint64_t unique_id GNUNET_PACKED;
222
223};
224
225
226
227/**
199 * Message to monitor put requests going through peer, DHT service -> clients. 228 * Message to monitor put requests going through peer, DHT service -> clients.
200 */ 229 */
201struct GNUNET_DHT_MonitorPutMessage 230struct GNUNET_DHT_MonitorPutMessage