Skip to content

Commit

Permalink
nrf_modem: doc: update NRF_SO_RCVTIMEO for accept
Browse files Browse the repository at this point in the history
The NRF_SO_RCVTIMEO is used to set the timeout in accept.

Signed-off-by: Eivind Jølsgard <[email protected]>
  • Loading branch information
eivindj-nordic committed Feb 20, 2024
1 parent b08950f commit 8ad124f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions nrf_modem/doc/sockets/socket_options_func.rst
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ NRF_SO_REUSEADDR
The default value for :c:macro:`NRF_SO_REUSEADDR` is ``off``, that is, reuse of local addresses is not permitted.

NRF_SO_RCVTIMEO
Set a timeout value for the :c:func:`nrf_recv` and :c:func:`nrf_recvfrom` operations.
Set a timeout value for the :c:func:`nrf_recv`, :c:func:`nrf_recvfrom` and :c:func:`nrf_accept` operations.
This option accepts an :c:struct:`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.
The default for this option is the value ``0``, which indicates that a receive operation will not time out.
If a receive or accept 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.
The default for this option is the value ``0``, which indicates that a receive or accept operation will not time out.

.. note::
The minimum supported resolution is 1 millisecond.
Expand Down

0 comments on commit 8ad124f

Please sign in to comment.