29 #ifndef __LWIP_NETDB_H__ 30 #define __LWIP_NETDB_H__ 34 #if LWIP_DNS && LWIP_SOCKET 38 #include "lwip/inet.h" 46 #ifndef LWIP_DNS_API_DECLARE_H_ERRNO 47 #define LWIP_DNS_API_DECLARE_H_ERRNO 1 50 #ifndef LWIP_DNS_API_DEFINE_ERRORS 51 #define LWIP_DNS_API_DEFINE_ERRORS 1 54 #ifndef LWIP_DNS_API_DECLARE_STRUCTS 55 #define LWIP_DNS_API_DECLARE_STRUCTS 1 58 #if LWIP_DNS_API_DEFINE_ERRORS 60 #define EAI_NONAME 200 61 #define EAI_SERVICE 201 63 #define EAI_MEMORY 203 65 #define HOST_NOT_FOUND 210 67 #define NO_RECOVERY 212 71 #if LWIP_DNS_API_DECLARE_STRUCTS 80 #define h_addr h_addr_list[0] 95 #if LWIP_DNS_API_DECLARE_H_ERRNO 100 struct hostent *lwip_gethostbyname(
const char *
name);
103 void lwip_freeaddrinfo(
struct addrinfo *ai);
104 int lwip_getaddrinfo(
const char *nodename,
109 #if LWIP_COMPAT_SOCKETS 110 #define gethostbyname(name) lwip_gethostbyname(name) 111 #define gethostbyname_r(name, ret, buf, buflen, result, h_errnop) \ 112 lwip_gethostbyname_r(name, ret, buf, buflen, result, h_errnop) 113 #define freeaddrinfo(addrinfo) lwip_freeaddrinfo(addrinfo) 114 #define getaddrinfo(nodname, servname, hints, res) \ 115 lwip_getaddrinfo(nodname, servname, hints, res) namespace GUID const ADDRINFOEXW * hints
GLenum GLuint GLenum GLsizei const GLchar * buf
static const ADDRINFOW PADDRINFOW *static const WCHAR * servname
struct addrinfo * ai_next
struct sockaddr * ai_addr