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. | |
| 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. | |
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. | |
| void | GNUNET_GNS_disconnect (struct GNUNET_GNS_Handle *handle) |
| Shutdown connection with the GNS service. | |
| struct GNUNET_GNS_LookupRequest * | GNUNET_GNS_lookup (struct GNUNET_GNS_Handle *handle, const char *name, const struct GNUNET_CRYPTO_BlindablePublicKey *zone, uint32_t type, enum GNUNET_GNS_LocalOptions options, GNUNET_GNS_LookupResultProcessor proc, void *proc_cls) |
| Perform an asynchronous lookup operation on the GNS. | |
| struct GNUNET_GNS_LookupRequest * | GNUNET_GNS_lookup_limited (struct GNUNET_GNS_Handle *handle, const char *name, const struct GNUNET_CRYPTO_BlindablePublicKey *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. | |
| void * | GNUNET_GNS_lookup_cancel (struct GNUNET_GNS_LookupRequest *lr) |
| Cancel pending lookup request. | |
| 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. | |
| void * | GNUNET_GNS_lookup_with_tld_cancel (struct GNUNET_GNS_LookupWithTldRequest *ltr) |
| Cancel pending lookup request. | |
| enum GNUNET_GenericReturnValue | GNUNET_GNS_parse_ztld (const char *name, struct GNUNET_CRYPTO_BlindablePublicKey *ztld_key) |
| Try to parse the zTLD into a public key. | |
API to the GNS service.
Definition in file gnunet_gns_service.h.