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.
struct GNUNET_MessageHeader header
GNUnet message header.
uint64_t limit
Number of records to return.
struct GNUNET_MessageHeader header
GNUnet message header.
uint16_t peer_set
GNUNET_YES if peer id value set, GNUNET_NO otherwise
struct GNUNET_PeerIdentity peer
Peer Identity.
uint16_t reserved
reserved
uint16_t sub_system_size
Size of the sub_system string Allocated at position 0 after this struct.
uint16_t key_size
Size of the key string Allocated at position 1 after this struct.
struct GNUNET_MessageHeader header
GNUnet message header.
struct GNUNET_MessageHeader header
GNUnet message header.
uint64_t limit
Number of records to return.
uint16_t iterate_first
GNUNET_YES if iterate first, GNUNET_NO otherwise
struct GNUNET_PeerIdentity peer
Peer Identity.
uint16_t peer_set
GNUNET_YES if peer id value set, GNUNET_NO otherwise
uint16_t key_size
Size of the key string Allocated at position 1 after this struct.
uint16_t sub_system_size
Size of the sub_system string Allocated at position 0 after this struct.
struct GNUNET_MessageHeader header
GNUnet message header.
Message carrying a PEERSTORE record message.
uint16_t value_size
Size of value blob Allocated at position 2 after this struct.
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 reserved
reserved
uint32_t options
Options, needed only in case of a store operation.
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.
Message carrying a PEERSTORE result message.
uint32_t result
Options, needed only in case of a store operation.
struct GNUNET_MessageHeader header
GNUnet message header.
Message carrying record key hash.
struct GNUNET_MessageHeader header
GNUnet message header.
struct GNUNET_HashCode keyhash
Hash of a record key.