riot_sys

Function coap_opt_add_proxy_uri

Source
pub unsafe extern "C" fn coap_opt_add_proxy_uri(
    pkt: *mut coap_pkt_t,
    uri: *const c_char,
) -> ssize_t
Expand description

@brief Adds a single Proxy-URI option into @p pkt

@note @p uri must be a NULL-terminated absolute URI

@param[in,out] pkt Packet being built @param[in] uri absolute proxy URI

@pre ((pkt != NULL) && (uri != NULL))

@return number of bytes written to pkt buffer @return <0 on error @return -ENOSPC if no available options or pkt full