Function nrfxlib_sys::nrf_sendto
source · pub unsafe extern "C" fn nrf_sendto(
socket: c_int,
message: *const c_void,
length: usize,
flags: c_int,
dest_addr: *const nrf_sockaddr,
dest_len: nrf_socklen_t
) -> isize
Expand description
Send a message on a socket.
@details See POSIX.1-2017 article for normative description.
In addition, the function shall return -1 and set the following errno:
- NRF_ESHUTDOWN Modem was shut down.
- NRF_ECANCELED Operation canceled because of APN rate control.
- NRF_ENOMEM TCP stream interrupted because of no heap memory.
- NRF_EPROTO Request failed because DTLS context was serialized.