/**
* Key of this request
*/
- GNUNET_HashCode key;
+ struct GNUNET_HashCode key;
};
/**
* The key to search for
*/
- GNUNET_HashCode key;
+ struct GNUNET_HashCode key;
/**
* Unique ID identifying this request, if 0 then
/**
* The key that was searched for
*/
- GNUNET_HashCode key;
+ struct GNUNET_HashCode key;
/* put path, get path and actual data are copied to end of this dealy do */
*/
uint32_t desired_replication_level GNUNET_PACKED;
+ /**
+ * Unique ID for the PUT message.
+ */
+ uint64_t unique_id GNUNET_PACKED;
+
/**
* How long should this data persist?
*/
/**
* The key to store the value under.
*/
- GNUNET_HashCode key;
+ struct GNUNET_HashCode key;
/* DATA copied to end of this message */
/**
- * Message to monitor put requests going through peer, DHT service --> clients.
+ * Message to confirming receipt of PUT, sent from DHT service to clients.
+ */
+struct GNUNET_DHT_ClientPutConfirmationMessage
+{
+ /**
+ * Type: GNUNET_MESSAGE_TYPE_DHT_CLIENT_PUT_OK
+ */
+ struct GNUNET_MessageHeader header;
+
+ /**
+ * Always zero.
+ */
+ uint32_t reserved GNUNET_PACKED;
+
+ /**
+ * Unique ID from the PUT message that is being confirmed.
+ */
+ uint64_t unique_id GNUNET_PACKED;
+
+};
+
+
+
+/**
+ * Message to monitor put requests going through peer, DHT service -> clients.
*/
struct GNUNET_DHT_MonitorPutMessage
{
/**
* The key to store the value under.
*/
- GNUNET_HashCode key;
+ struct GNUNET_HashCode key;
/* put path (if tracked) */
/**
- * Message to request monitoring messages, clients --> DHT service.
+ * Message to request monitoring messages, clients -> DHT service.
*/
-struct GNUNET_DHT_MonitorStartMessage
+struct GNUNET_DHT_MonitorStartStopMessage
{
/**
- * Type: GNUNET_MESSAGE_TYPE_DHT_MONITOR_START
+ * Type: GNUNET_MESSAGE_TYPE_DHT_MONITOR_(START|STOP)
*/
struct GNUNET_MessageHeader header;
int16_t filter_key GNUNET_PACKED;
/**
- * The key to filter messages by..
+ * The key to filter messages by.
*/
- GNUNET_HashCode key;
+ struct GNUNET_HashCode key;
};
/**
- * Message to monitor get requests going through peer, DHT service --> clients.
+ * Message to monitor get requests going through peer, DHT service -> clients.
*/
struct GNUNET_DHT_MonitorGetMessage
{
/**
* The key to store the value under.
*/
- GNUNET_HashCode key;
+ struct GNUNET_HashCode key;
/* get path (if tracked) */
};
/**
- * Message to monitor get results going through peer, DHT service --> clients.
+ * Message to monitor get results going through peer, DHT service -> clients.
*/
struct GNUNET_DHT_MonitorGetRespMessage
{
/**
* The key of the corresponding GET request.
*/
- GNUNET_HashCode key;
+ struct GNUNET_HashCode key;
/* put path (if tracked) */