Function nrfxlib_sys::nrf_send [−][src]
pub unsafe extern "C" fn nrf_send(
sock: c_int,
p_buff: *const c_void,
nbytes: size_t,
flags: c_int
) -> ssize_t
Function for sending data through a socket.
s By default, this function will block unless the NRF_O_NONBLOCK socket option has been set, OR NRF_MSG_DONTWAIT is passed as a flag. In that case, the method will return immediately.
sock
- The socket to write data to.p_buff
- Buffer containing the data to send.nbytes
- Size of data contained on p_buff.flags
- Flags to control send behavior.
Returns The number of bytes that were sent on success, or -1 on error.