|
Tizen RT Libs&Environment
v1.0 D5
|
DNS client API. More...
#include <tinyara/config.h>#include <tinyara/compiler.h>#include <inttypes.h>#include <netinet/in.h>#include <sys/socket.h>
Go to the source code of this file.
Data Structures | |
| struct | hostent |
| struct | netent |
| struct | protoent |
| struct | servent |
| struct | addrinfo |
| struct | servent_data |
Macros | |
| #define | IPPORT_RESERVED 0xffff /* No reserved port numbers */ |
| #define | AI_PASSIVE (1 << 0) |
| #define | AI_CANONNAME (1 << 1) |
| #define | AI_NUMERICHOST (1 << 2) |
| #define | AI_NUMERICSERV (1 << 3) |
| #define | AI_V4MAPPED (1 << 4) |
| #define | AI_ALL (1 << 5) |
| #define | AI_ADDRCONFIG (1 << 6) |
| #define | NI_NOFQDN (1 << 0) |
| #define | NI_NUMERICHOST (1 << 1) |
| #define | NI_NAMEREQD (1 << 2) |
| #define | NI_NUMERICSERV (1 << 3) |
| #define | NI_NUMERICSCOPE (1 << 4) |
| #define | NI_DGRAM (1 << 5) |
| #define | HOST_NOT_FOUND 1 |
| #define | NO_DATA 2 |
| #define | NO_RECOVERY 3 |
| #define | TRY_AGAIN 4 |
| #define | EAI_AGAIN 1 |
| #define | EAI_BADFLAGS 2 |
| #define | EAI_FAMILY 3 |
| #define | EAI_MEMORY 4 |
| #define | EAI_NONAME 5 |
| #define | EAI_SERVICE 6 |
| #define | EAI_SOCKTYPE 7 |
| #define | EAI_SYSTEM 8 |
| #define | EAI_OVERFLOW 9 |
| #define | EAI_FAIL -1 |
| #define | HOST_NOT_FOUND 1 |
| #define | NO_DATA 2 |
| #define | NO_RECOVERY 3 |
| #define | TRY_AGAIN 4 |
| #define | _PATH_SERVICES "/etc/services" |
| #define | h_addr h_addr_list[0] /* For backward compatibility */ |
| #define | EXTERN extern |
Functions | |
| int | getaddrinfo (const char *host, const char *service, const struct addrinfo *hints, struct addrinfo **res) |
| getaddrinfo() is a function that returns information on a particular host name (such as its IP address) and loads up a struct sockaddr. More... | |
| void | freeaddrinfo (FAR struct addrinfo *ai) |
| freeaddrinfo() frees the memory allocated by the getaddrinfo() function. More... | |
| FAR struct hostent * | gethostbyaddr (FAR const void *addr, socklen_t len, int type) |
| gethostbyaddr() is the function returns a corresponding hostname with given IP addresses More... | |
| FAR struct hostent * | gethostbyname (FAR const char *name) |
| gethostbyname() is the function sending DNS query to DNS server with hostname More... | |
Variables | |
| EXTERN int | h_errno |
DNS client API.
Definition in file netdb.h.