[−][src]Function libcoap_sys::coap_send_message_type
pub unsafe extern "C" fn coap_send_message_type(
session: *mut coap_session_t,
request: *mut coap_pdu_t,
type_: c_uchar
) -> coap_tid_t
Helper funktion to create and send a message with @p type (usually ACK or RST). This function returns @c COAP_INVALID_TID when the message was not sent, a valid transaction id otherwise.
@param session The CoAP session. @param request The request that should be responded to. @param type Which type to set. @return transaction id on success or @c COAP_INVALID_TID otherwise.