Resolve remote host by host name or IP address.
This function wraps up getaddrinfo() to return first resolved address.
- Parameters
-
[in] | cid | PDP Context ID as defined in "+CGDCONT" command (0~10). |
[in] | host | Name or IP address of remote host. |
[in] | port | Service port of remote host. |
[in] | family | Desired address family for the returned address. |
[out] | sa | The returned address. |
- Return values
-
0 | If the operation was successful. Otherwise, an errno code or a dns_resolve_status enum value (defined in zephyr/net/dns_resolve.h ). |