Function arceos_posix_api::sys_getaddrinfo
source · pub unsafe fn sys_getaddrinfo(
nodename: *const c_char,
servname: *const c_char,
_hints: *const addrinfo,
res: *mut *mut addrinfo
) -> c_int
Available on crate feature
net
only.Expand description
Query addresses for a domain name.
Only IPv4. Ports are always 0. Ignore servname and hint. Results’ ai_flags and ai_canonname are 0 or NULL.
Return address number if success.