3.0.0.0R11
Software Development Kit
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules
DNS client

Functions

bool ltrx_host_lookup (const char *hostname, uint32_t timeout_ms, uint8_t *zeroBasedInterface, struct ltrx_ip_address *ipaddr)
 Host lookup. More...
 

Detailed Description

The Domain Name System (DNS) client resolves DNS names, returning an IP address.

Function Documentation

bool ltrx_host_lookup ( const char *  hostname,
uint32_t  timeout_ms,
uint8_t *  zeroBasedInterface,
struct ltrx_ip_address ipaddr 
)

Host lookup.

Return values
trueSuccess.
falseFailed.
Parameters
[in]hostnameHost name to look up.
[in]timeout_msTimeout in milliseconds.
[out]zeroBasedInterfaceInterface index, if successful.
[out]ipaddrThe IP address looked up, if successful.