Function riot_sys::sock_tl_name2ep

source ·
pub unsafe extern "C" fn sock_tl_name2ep(
    ep_out: *mut _sock_tl_ep,
    str_: *const c_char
) -> c_int
Expand description

@brief Convert string to common IP-based transport layer endpoint If the sock_dns module is used, this will do a DNS lookup if @p str is not an IP address.

Takes eg., “riot-os.org:1234” and converts it into the corresponding endpoint structure.

@param[out] ep_out endpoint structure to fill @param[in] str string to read from

@returns 0 on success @returns <0 otherwise