* @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"
*/
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.
*/
*/
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;
+
};