Function nrfxlib_sys::nrf_write[][src]

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

Function for writing data to a socket. See nrf_send() for details.

  • sock - The socket to write data to.
  • p_buff - Buffer containing the data to send.
  • nbytes - Size of data contained in p_buff.

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