#define GNUNET_NETWORK_STRUCT_BEGIN
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32.
#define GNUNET_NETWORK_STRUCT_END
Define as empty, GNUNET_PACKED should suffice, but this won't work on W32;.
#define GNUNET_PACKED
gcc-ism to get packed structs.
Message transmitting content from or to the datastore service.
uint32_t priority
Priority of the item (NBO), zero for remove.
struct GNUNET_HashCode key
Key under which the item can be found.
uint64_t uid
Unique ID for the content (can be used for UPDATE); can be zero for remove (which indicates that the ...
struct GNUNET_TIME_AbsoluteNBO expiration
Expiration time (NBO); zero for remove.
struct GNUNET_MessageHeader header
Type is either GNUNET_MESSAGE_TYPE_DATASTORE_PUT, GNUNET_MESSAGE_TYPE_DATASTORE_REMOVE or GNUNET_MESS...
uint32_t type
Type of the item (NBO), zero for remove, (actually an enum GNUNET_BLOCK_Type)
uint32_t size
Number of bytes in the item (NBO).
uint32_t replication
Desired replication level.
uint32_t anonymity
Desired anonymity level (NBO), zero for remove.
uint32_t reserved
For alignment.
uint32_t rid
Reservation ID to use; use zero for none.
Time for absolute time used by GNUnet, in microseconds and in network byte order.
Message to the datastore service asking about specific content.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_DATASTORE_GET_KEY.
uint32_t type
Desired content type.
uint64_t next_uid
UID at which to start the search.
struct GNUNET_HashCode key
Desired key.
uint32_t random
If true return a random result.
Message to the datastore service asking about specific content.
uint32_t random
If true return a random result.
uint32_t type
Desired content type.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_DATASTORE_GET.
uint64_t next_uid
UID at which to start the search.
Message to the datastore service asking about zero anonymity content.
uint64_t next_uid
UID at which to start the search.
uint32_t type
Desired content type (actually an enum GNUNET_BLOCK_Type)
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_DATASTORE_GET_ZERO_ANONYMITY.
Message from datastore client informing service that the remainder of the reserved bytes can now be r...
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_DATASTORE_RELEASE_RESERVE.
int32_t rid
Reservation id.
Message from datastore service informing client about the current size of the datastore.
uint32_t entries
Number of items to reserve.
uint64_t amount
Number of bytes to reserve.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_DATASTORE_RESERVE.
Message from datastore service informing client about the success or failure of a requested operation...
struct GNUNET_TIME_AbsoluteNBO min_expiration
Minimum expiration time required for content to be stored by the datacache at this time,...
int32_t status
Status code, -1 for errors.
struct GNUNET_MessageHeader header
Type is GNUNET_MESSAGE_TYPE_DATASTORE_STATUS.