Syntax
int gethostbyname(
unsigned char *pcHostName
);
Parameters
- pcHostName
- [in] Specify the domain name.
Be sure to specify NULL for the end of the domain name.
Maximum of 64 characters.
(In the case of 64 characters, the 65th character will be NULL.)
Return value
The following values will be returned.Value | Description |
---|---|
M2M_SUCCESS | Succeeded |
M2M_ERR_SLEEP_FAIL | Initialize with SysWLANInit function. |
Other than the above | Failed |
Remarks
Request domain name resolution from DNS.The processing request of this function is processed asynchronously. The processing result is received by the callback function specified by the pfAppResolveCb parameter of the RegSocketCallbackSc function.
For more information on the callback functions, see tpfAppResolveCb callback function.
Requirements
Header file:
lib.hLibrary file:
libSTARTUPOPH5000.a
Last updated: 2020/11/26