[][src]Function libcoap_sys::coap_session_send

pub unsafe extern "C" fn coap_session_send(
    session: *mut coap_session_t,
    data: *const u8,
    datalen: usize
) -> isize

Function interface for datagram data transmission. This function returns the number of bytes that have been transmitted, or a value less than zero on error.

@param session Session to send data on. @param data The data to send. @param datalen The actual length of @p data.

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