1 #ifndef _LIBPSOCKET__NETDB_H_
2 #define _LIBPSOCKET__NETDB_H_
4 typedef unsigned int socklen_t;
13 struct sockaddr *ai_addr;
15 struct addrinfo *ai_next;
18 extern int getaddrinfo(const char *node, const char *service, const struct addrinfo *hints, struct addrinfo **res);
19 extern void freeaddrinfo(struct addrinfo *res);
20 const char *gai_strerror(int errorcode);