45 unsigned long long max_bg_queries);
93 uint16_t recursion_depth_limit,
struct GNUNET_GETOPT_CommandLineOption options[]
IPC messages between GNS API and GNS service.
static struct GNUNET_DHT_Handle * dht
Handle to the DHT.
static char * name
Name (label) of the records to list.
static unsigned int rd_count
Number of records for currently parsed set.
static struct GNUNET_GNSRECORD_Data rd[50]
The record data under a single label.
static struct GNUNET_NotificationContext * nc
Notification context for broadcasting to monitors.
void GNS_resolver_init(struct GNUNET_NAMECACHE_Handle *nc, struct GNUNET_DHT_Handle *dht, const struct GNUNET_CONFIGURATION_Handle *c, unsigned long long max_bg_queries)
Initialize the resolver subsystem.
void GNS_resolver_done(void)
Cleanup resolver: Terminate pending lookups.
void GNS_resolver_lookup_cancel(struct GNS_ResolverHandle *rh)
Cancel active resolution (i.e.
void(* GNS_ResultProcessor)(void *cls, uint32_t rd_count, const struct GNUNET_GNSRECORD_Data *rd)
Function called with results for a GNS resolution.
struct GNS_ResolverHandle * GNS_resolver_lookup(const struct GNUNET_CRYPTO_PublicKey *zone, uint32_t record_type, const char *name, enum GNUNET_GNS_LocalOptions options, uint16_t recursion_depth_limit, GNS_ResultProcessor proc, void *proc_cls)
Lookup of a record in a specific zone calls RecordLookupProcessor on result or timeout.
API that can be used to store naming information on a GNUnet node.
GNUNET_GNS_LocalOptions
Options for the GNS lookup.
Handle to a currently pending resolution.
void * proc_cls
closure passed to proc
int record_type
Desired type for the resolution.
GNS_ResultProcessor proc
called when resolution phase finishes
An identity key as per LSD0001.
Connection to the DHT service.
Connection to the NAMECACHE service.