API to the peerstore service.
#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.
The identity of the host (wraps the signing key of the peer).
Time for absolute time used by GNUnet, in microseconds and in network byte order.
Message carrying record key hash.
struct GNUNET_MessageHeader header
GNUnet message header.
uint32_t reserved
Always 0, for alignment.
struct GNUNET_HashCode keyhash
Hash of a record key.
Message carrying a PEERSTORE record message.
uint32_t options
Options, needed only in case of a store operation.
uint16_t key_size
Size of the key string Allocated at position 1 after this struct.
struct GNUNET_TIME_AbsoluteNBO expiry
Expiry time of entry.
uint16_t value_size
Size of value blob Allocated at position 2 after this struct.
uint16_t peer_set
GNUNET_YES if peer id value set, GNUNET_NO otherwise
uint16_t sub_system_size
Size of the sub_system string Allocated at position 0 after this struct.
struct GNUNET_PeerIdentity peer
Peer Identity.
struct GNUNET_MessageHeader header
GNUnet message header.