Skip to content

DNSClient

詳細情報

メンバー

begin()

void DNSClient::begin(const IPAddress &aDNSServer)

引数

  • const& aDNSServer

inet_aton()

int DNSClient::inet_aton(const char *aIPAddrString, IPAddress &aResult)

引数

  • constchar * aIPAddrString IP address to convert
  • IPAddress& aResult structure to store the returned IP address

戻り値

int 1 if aIPAddrString was successfully converted to an IP address, else error code

getHostByName()

int DNSClient::getHostByName(const char *aHostname, IPAddress &aResult, uint16_t timeout=5000)

引数

  • constchar * aHostname Name to be resolved
  • IPAddress& aResult structure to store the returned IP address
  • uint16_t timeout

戻り値

int 1 if aIPAddrString was successfully converted to an IP address, else error code