WiP
[oweals/gnunet.git] / src / core / core.h
index 8a3cdcde256e1f5a81602b7ba834c3794731b366..8a8962124fdbd1ec37085e8a4f45b8f9e8150cb1 100644 (file)
  * @file core/core.h
  * @brief common internal definitions for core service
  * @author Christian Grothoff
- *
- * TODO:
- * - bound message queue size
- * - on disconnect from core, signal disconnect for all peers
- *   and clean up peer records
- * - create / destroy peer records on connect/disconnect events
- * - implement iterator API
- * - implement re-configure API
- * - check on peer-related events that connection is known
- *   (if not, GNUNET_break + reconnect)
- * - handle atsi records
  */
 #include "gnunet_bandwidth_lib.h"
 #include "gnunet_crypto_lib.h"
@@ -235,11 +224,6 @@ struct NotifyTrafficMessage
    */
   uint32_t ats_count GNUNET_PACKED;
 
-  /**
-   * Currently observed latency.
-   */
-  struct GNUNET_TIME_RelativeNBO latency;
-
   /**
    * Identity of the receiver or sender.
    */
@@ -316,6 +300,13 @@ struct ConfigurationInfoMessage
    */
   int32_t reserved_amount GNUNET_PACKED;
 
+  /**
+   * If the reservation request could not be satisfied (reserved_amount
+   * was zero), how long should the client wait until retrying? 0 if
+   * bandwidth was reserved.
+   */
+  struct GNUNET_TIME_RelativeNBO reserve_delay;
+
   /**
    * Unique request ID.
    */
@@ -446,6 +437,16 @@ struct SendMessage
    */
   struct GNUNET_PeerIdentity peer;
 
+  /**
+   * GNUNET_YES if corking is allowed, GNUNET_NO if not.
+   */
+  uint32_t cork GNUNET_PACKED;
+
+  /**
+   * Always 0.
+   */
+  uint64_t reserved GNUNET_PACKED;
+
 };