[−][src]Function libcoap_sys::coap_network_send
pub unsafe extern "C" fn coap_network_send(
sock: *mut coap_socket_t,
session: *const coap_session_t,
data: *const u8,
datalen: usize
) -> isize
Function interface for data transmission. This function returns the number of bytes that have been transmitted, or a value less than zero on error.
@param sock Socket to send data with @param session Addressing information for unconnected sockets, or NULL @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.