-dce
[oweals/gnunet.git] / src / dht / dht.h
index a7126aed713cae4051782ac5c9c4eb95fd129bdd..8adf49f5c72b6b6200d1cd10ff306f35fc398672 100644 (file)
@@ -180,6 +180,11 @@ struct GNUNET_DHT_ClientPutMessage
    */
   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?
    */
@@ -196,7 +201,31 @@ struct GNUNET_DHT_ClientPutMessage
 
 
 /**
- * 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
 {
@@ -249,12 +278,12 @@ struct GNUNET_DHT_MonitorPutMessage
 
 
 /**
- * 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;
 
@@ -284,14 +313,14 @@ struct GNUNET_DHT_MonitorStartMessage
   int16_t filter_key GNUNET_PACKED;
 
   /**
-   * The key to filter messages by..
+   * The key to filter messages by.
    */
   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
 {
@@ -336,7 +365,7 @@ struct GNUNET_DHT_MonitorGetMessage
 };
 
 /**
- * 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
 {