API to the GNS service. More...
#include "gnunet_util_lib.h"
#include "gnunet_identity_service.h"
#include "gnunet_namestore_service.h"
Go to the source code of this file.
Typedefs | |
typedef void(* | GNUNET_GNS_LookupResultProcessor) (void *cls, uint32_t rd_count, const struct GNUNET_GNSRECORD_Data *rd) |
Iterator called on obtained result for a GNS lookup. More... | |
typedef void(* | GNUNET_GNS_LookupResultProcessor2) (void *cls, int gns_tld, uint32_t rd_count, const struct GNUNET_GNSRECORD_Data *rd) |
Iterator called on obtained result for a GNS lookup where "not GNS" is a valid answer. More... | |
Enumerations | |
enum | GNUNET_GNS_LocalOptions { GNUNET_GNS_LO_DEFAULT = 0 , GNUNET_GNS_LO_NO_DHT = 1 , GNUNET_GNS_LO_LOCAL_MASTER = 2 } |
Options for the GNS lookup. More... | |
Functions | |
struct GNUNET_GNS_Handle * | GNUNET_GNS_connect (const struct GNUNET_CONFIGURATION_Handle *cfg) |
Initialize the connection with the GNS service. More... | |
void | GNUNET_GNS_disconnect (struct GNUNET_GNS_Handle *handle) |
Shutdown connection with the GNS service. More... | |
struct GNUNET_GNS_LookupRequest * | GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, const char *name, const struct GNUNET_CRYPTO_PublicKey *zone, uint32_t type, enum GNUNET_GNS_LocalOptions options, GNUNET_GNS_LookupResultProcessor proc, void *proc_cls) |
Perform an asynchronous lookup operation on the GNS. More... | |
struct GNUNET_GNS_LookupRequest * | GNUNET_GNS_lookup_limited (struct GNUNET_GNS_Handle *handle, const char *name, const struct GNUNET_CRYPTO_PublicKey *zone, uint32_t type, enum GNUNET_GNS_LocalOptions options, uint16_t recursion_depth_limit, GNUNET_GNS_LookupResultProcessor proc, void *proc_cls) |
Perform an asynchronous lookup operation on the GNS. More... | |
void * | GNUNET_GNS_lookup_cancel (struct GNUNET_GNS_LookupRequest *lr) |
Cancel pending lookup request. More... | |
struct GNUNET_GNS_LookupWithTldRequest * | GNUNET_GNS_lookup_with_tld (struct GNUNET_GNS_Handle *handle, const char *name, uint32_t type, enum GNUNET_GNS_LocalOptions options, GNUNET_GNS_LookupResultProcessor2 proc, void *proc_cls) |
Perform an asynchronous lookup operation on the GNS, determining the zone using the TLD of the given name and the current configuration to resolve TLDs to zones. More... | |
void * | GNUNET_GNS_lookup_with_tld_cancel (struct GNUNET_GNS_LookupWithTldRequest *ltr) |
Cancel pending lookup request. More... | |
enum GNUNET_GenericReturnValue | GNUNET_GNS_parse_ztld (const char *name, struct GNUNET_CRYPTO_PublicKey *ztld_key) |
Try to parse the zTLD into a public key. More... | |
API to the GNS service.
Definition in file gnunet_gns_service.h.