[][src]Function libcoap_sys::coap_session_send_pdu

pub unsafe extern "C" fn coap_session_send_pdu(
    session: *mut coap_session_t,
    pdu: *mut coap_pdu_t
) -> isize

Send a pdu according to the session's protocol. This function returns the number of bytes that have been transmitted, or a value less than zero on error.

@param session Session to send pdu on. @param pdu The pdu to send.

@return The number of bytes written on success, or a value less than zero on error.