Asynchronous DNS resolving function.
This function use DNS to resolve a domain name into the corresponding IP address. A call to this function will cause a DNS request to be sent and the response will be delivered to the DNS callback function registered using registerSocketCallback()
Functions | |
NMI_API sint8 | gethostbyname (uint8 *pcHostName) |
[in] | pcHostName | NULL terminated string containing the domain name for the remote host. Its size must not exceed HOSTNAME_MAX_SIZE. |
References HOSTNAME_MAX_SIZE, m2m_strlen(), NULL, SOCK_ERR_INVALID_ARG, SOCKET_CMD_DNS_RESOLVE, and SOCKET_REQUEST.
Referenced by AppServerCb(), ConnectNetwork(), http_client_send_request(), NMI_GrowlSendNotification(), and wifi_cb().