API for helper library to send DNS requests to DNS resolver. More...
#include "gnunet_util_lib.h"Go to the source code of this file.
Typedefs | |
| typedef void(* | GNUNET_DNSSTUB_ResultCallback) (void *cls, const struct GNUNET_TUN_DnsHeader *dns, size_t dns_len) |
| Function called with the result of a DNS resolution. | |
Functions | |
| struct GNUNET_DNSSTUB_Context * | GNUNET_DNSSTUB_start (unsigned int num_sockets) |
| Start a DNS stub resolver. | |
| int | GNUNET_DNSSTUB_add_dns_ip (struct GNUNET_DNSSTUB_Context *ctx, const char *dns_ip) |
| Add nameserver for use by the DNSSTUB. | |
| int | GNUNET_DNSSTUB_add_dns_sa (struct GNUNET_DNSSTUB_Context *ctx, const struct sockaddr *sa) |
| Add nameserver for use by the DNSSTUB. | |
| void | GNUNET_DNSSTUB_set_retry (struct GNUNET_DNSSTUB_Context *ctx, struct GNUNET_TIME_Relative retry_freq) |
| How long should we try requests before timing out? Only effective for requests issued after this call. | |
| void | GNUNET_DNSSTUB_stop (struct GNUNET_DNSSTUB_Context *ctx) |
| Cleanup DNSSTUB resolver. | |
| struct GNUNET_DNSSTUB_RequestSocket * | GNUNET_DNSSTUB_resolve (struct GNUNET_DNSSTUB_Context *ctx, const void *request, size_t request_len, GNUNET_DNSSTUB_ResultCallback rc, void *rc_cls) |
| Perform DNS resolution using our default IP from init. | |
| void | GNUNET_DNSSTUB_resolve_cancel (struct GNUNET_DNSSTUB_RequestSocket *rs) |
| Cancel DNS resolution. | |
API for helper library to send DNS requests to DNS resolver.
Definition in file gnunet_dnsstub_lib.h.