5.11.0.0R3
Software Development Kit
 
Loading...
Searching...
No Matches
DNS client

Functions

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

Detailed Description

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

Function Documentation

◆ ltrx_host_lookup()

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.