Function tarantool_rust_module::coio_getaddrinfo
[−]
[src]
pub unsafe extern "C" fn coio_getaddrinfo(
host: *const c_char,
port: *const c_char,
hints: *const addrinfo,
res: *mut *mut addrinfo,
timeout: f64
) -> c_int
Fiber-friendly version of getaddrinfo(3).
@param host host name, i.e. "tarantool.org" @param port service name, i.e. "80" or "http" @param hints hints, see getaddrinfo(3) @param res[out] result, see getaddrinfo(3) @param timeout timeout @retval 0 on success, please free @a res using freeaddrinfo(3). @retval -1 on error, check diag. Please note that the return value is not compatible with getaddrinfo(3). @sa getaddrinfo()