|
Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
|
Infuse DNS API . More...
Functions | |
| int | infuse_sync_dns (const char *host, uint16_t port, int family, int socktype, struct sockaddr *addr, socklen_t *addrlen) |
| Perform a DNS query for a host. | |
Infuse DNS API .
| int infuse_sync_dns | ( | const char * | host, |
| uint16_t | port, | ||
| int | family, | ||
| int | socktype, | ||
| struct sockaddr * | addr, | ||
| socklen_t * | addrlen ) |
#include <infuse/net/dns.h>
Perform a DNS query for a host.
| host | Host to lookup |
| port | Port number of host |
| family | Protocol family hint |
| socktype | Socket type hint |
| addr | Output storage for host address |
| addrlen | Output length of address |
| 0 | on success |
| -errno | on failure |