riot_sys::bindgen

Function sock_tl_ep_fmt

Source
pub unsafe extern "C" fn sock_tl_ep_fmt(
    endpoint: *const _sock_tl_ep,
    addr_str: *mut c_char,
    port: *mut u16,
) -> c_int
Expand description

@brief Format common IP-based transport layer endpoint to string and port

@param[in] endpoint endpoint to format @param[out] addr_str where to write address as string @param[out] port where to write port number as uint16_t

@returns number of bytes written to @p addr_str on success @returns <0 otherwise