Function nrfxlib_sys::nrf_read[][src]

pub unsafe extern "C" fn nrf_read(
    sock: c_int,
    p_buff: *mut c_void,
    nbytes: size_t
) -> ssize_t

Function for reading data from a socket. See nrf_recv() for details.

  • sock - The socket to receive data from.
  • p_buff - Buffer to hold the data to be read.
  • nbytes - Number of bytes to read. Should not be larger than the size of p_buff.

Returns The number of bytes that were read, or -1 on error.