riot_sys::bindgen

Function gnrc_tcp_ep_from_str

Source
pub unsafe extern "C" fn gnrc_tcp_ep_from_str(
    ep: *mut gnrc_tcp_ep_t,
    str_: *const c_char,
) -> c_int
Expand description

@brief Construct TCP connection endpoint from string. @note This function expects @p str in the IPv6 “URL” notation. The following strings specify a valid endpoint: - [fe80::0a00:27ff:fe9f:7a5b%5]:8080 (with Port and Interface) - [2001::0200:f8ff:fe21:67cf]:8080 (with Port) - [2001::0200:f8ff:fe21:67cf] (addr only)

@param[in,out] ep Endpoint to initialize. @param[in] str String containing IPv6-Address to parse.

@return 0 on success. @return -EINVAL if parsing of @p str failed.