Infuse-IoT SDK API 0.0.1
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
dns Infuse DNS APIs

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.
 

Detailed Description

Infuse DNS API .

Function Documentation

◆ infuse_sync_dns()

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.

Note
Also populates port number
Parameters
hostHost to lookup
portPort number of host
familyProtocol family hint
socktypeSocket type hint
addrOutput storage for host address
addrlenOutput length of address
Return values
0on success
-errnoon failure