[−][src]Function libcoap_sys::coap_tls_read
pub unsafe extern "C" fn coap_tls_read(
coap_session: *mut coap_session_t,
data: *mut u8,
data_len: usize
) -> isize
Read some data from a TLS peer.
Internal function.
@param coap_session The CoAP session. @param data Pointer to data. @param data_len Maximum number of bytes to read.
@return @c 0 if this should be retried, @c -1 if there is an error or the number of cleartext bytes read.