resolve.h
#ifndef NET__RESOLVE__H__
#define NET__RESOLVE__H__
#include "ipv4.h"
#define RESOLVE_OK 0
#define RESOLVE_NOTFOUND 1
#define RESOLVE_NOADDR 2
#define RESOLVE_NSERROR 3
#define RESOLVE_TEMPFAIL 4
extern const char* resolve_ipv4addr(const ipv4addr* addr);
extern int resolve_ipv4name_n(const char* name, ipv4addr* addr, int maxaddrs);
#define resolve_ipv4name(N,A) resolve_ipv4name_n((N),(A),1)
extern int __resolve_error;
#define resolve_error() (__resolve_error)
struct dns_result;
extern int resolve_calldns(int (*dnsfn)(struct dns_result*, const void*), struct dns_result* out, const void* param);
extern int resolve_qualdns(int (*dnsfn)(struct dns_transmit*, struct dns_result* out, const char*),
struct dns_result* out, const char* name);
#endif
resolve_ipv4name_n
int resolve_ipv4name_n(const char *name, ipv4addr *addr, int maxaddrs)
Definition resolve_ipv4name.c:5
resolve_calldns
int resolve_calldns(int(*dnsfn)(struct dns_result *, const void *), struct dns_result *out, const void *param)
Definition resolve_calldns.c:8
resolve_qualdns
int resolve_qualdns(int(*dnsfn)(struct dns_transmit *, struct dns_result *out, const char *), struct dns_result *out, const char *name)
Definition resolve_calldns.c:22
__resolve_error
int __resolve_error
Definition resolve_calldns.c:5
resolve_ipv4addr
const char * resolve_ipv4addr(const ipv4addr *addr)
Definition resolve_ipv4addr.c:9
dns_result
Definition dns.h:138
dns_transmit
Definition dns.h:79
ipv4addr
Definition ipv4.h:11