riot_sys::bindgen

Function sock_udp_get_local

Source
pub unsafe extern "C" fn sock_udp_get_local(
    sock: *mut sock_udp_t,
    ep: *mut sock_udp_ep_t,
) -> c_int
Expand description

@brief Gets the local end point of a UDP sock object

@pre (sock != NULL) && (ep != NULL)

@param[in] sock A UDP sock object. @param[out] ep The local end point.

@return 0 on success. @return -EADDRNOTAVAIL, when @p sock has no local end point.