nrfxlib API 3.3.99
Loading...
Searching...
No Matches

◆ NRF_SO_SNDTIMEO

#define NRF_SO_SNDTIMEO   21

#include <nrf_modem/include/nrf_socket.h>

Timeout value for a socket send operation.

Set a timeout value for the nrf_send, nrf_sendto and nrf_accept operations. This option accepts an nrf_timeval structure with a number of seconds and microseconds specifying the limit on how long to wait for an input operation to complete.

If a send operation has blocked for this much time without sending additional data, it returns with a partial count, or errno is set to NRF_EAGAIN or NRF_EWOULDBLOCK if no data was sent.

The default value is 0 (no timeout).

Note
The minimum supported resolution is 1 millisecond.