6#ifndef ZEPHYR_INCLUDE_POSIX_NETDB_H_
7#define ZEPHYR_INCLUDE_POSIX_NETDB_H_
15#define addrinfo zsock_addrinfo
17static inline int getaddrinfo(
const char *host,
const char *service,
39 serv, servlen,
flags);
void zsock_freeaddrinfo(struct zsock_addrinfo *ai)
Free results returned by zsock_getaddrinfo()
const char * zsock_gai_strerror(int errcode)
Convert zsock_getaddrinfo() error code to textual message.
int zsock_getnameinfo(const struct sockaddr *addr, socklen_t addrlen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags)
Resolve a network address to a domain name or ASCII address.
int zsock_getaddrinfo(const char *host, const char *service, const struct zsock_addrinfo *hints, struct zsock_addrinfo **res)
Resolve a domain name to one or more network addresses.
size_t socklen_t
Definition: net_ip.h:161
flags
Definition: http_parser.h:131
BSD Sockets compatible API definitions.
static int getaddrinfo(const char *host, const char *service, const struct zsock_addrinfo *hints, struct zsock_addrinfo **res)
Definition: netdb.h:17
static int getnameinfo(const struct sockaddr *addr, socklen_t addrlen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags)
Definition: netdb.h:34
static const char * gai_strerror(int errcode)
Definition: netdb.h:29
static void freeaddrinfo(struct zsock_addrinfo *ai)
Definition: netdb.h:24