riot_sys::bindgen

Function sock_udp_get_remote

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

@brief Gets the remote end point of a UDP sock object @pre (sock != NULL) && (ep != NULL)

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

@return 0 on success. @return -ENOTCONN, when @p sock has no remote end point bound to it.