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

◆ NRF_SO_RCVTIMEO

#define NRF_SO_RCVTIMEO   20

#include <nrf_modem/include/nrf_socket.h>

Timeout value for a socket receive and accept operations.

Set a timeout value for the nrf_recv, nrf_recvfrom 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 receive operation has blocked for this much time without receiving additional data, it returns with a partial count, or errno is set to NRF_EAGAIN or NRF_EWOULDBLOCK if no data were received.

If an accept operation has blocked for this much time without receiving an incoming connection, it returns -1 and errno is set to NRF_EAGAIN.

The default value is 0 (no timeout).

Note
The minimum supported resolution is 1 millisecond.