W60X_Arduino: DNSClient Class Reference

Arduino W60X

W60X_Arduino

Public Member Functions

void begin (unsigned int aDNSServer)
 
void begin (const char *aDNSServer)
 
int getHostByName (const char *aHostname, unsigned int &aResult)
 This function is used to resolve the hostname . More...
 
int getHostByName (const char *aHostname, char *&aResult)
 This function is used to resolve the hostname. More...
 

Protected Member Functions

uint16_t BuildRequest (const char *aName)
 
uint16_t ProcessResponse (uint16_t aTimeout, uint32_t &aAddress)
 

Member Function Documentation

◆ getHostByName() [1/2]

int DNSClient::getHostByName ( const char *  aHostname,
unsigned int &  aResult 
)

This function is used to resolve the hostname .

This function is used to resolve the hostname.

Parameters
[in]aHostnameThe hostname which user want to resolve.
[out]aResultThe first IPv4 address which resolve via DNS protocol that display as a 32-bits value.
Returns
If the operation executes success, true is returned, otherwise, false is returned.
Note

◆ getHostByName() [2/2]

int DNSClient::getHostByName ( const char *  aHostname,
char *&  aResult 
)

This function is used to resolve the hostname.

Parameters
[in]aHostnameThe hostname which user want to resolve.
[out]aResultThe first IPv4 address which resolve via DNS protocol that display as a Dotted Decimal Notation string.
Returns
If the operation executes success, true is returned, otherwise, false is returned.
Note
Generated by   doxygen 1.8.14