![]() |
nrfxlib API 3.3.99
|
| #define NRF_MSG_WAITALL 0x100 |
#include <nrf_modem/include/nrf_socket.h>
Requests that the function blocks read operation until the full amount of data requested has been received.
This flag is only supported for the nrf_recv and nrf_recvfrom functions.
This flag is not valid for datagram sockets.
If this flag is used, the function continues to block and wait for more data until either the requested number of bytes has been received or an error occurs. If the connection is closed before all requested data is received, the function returns the number of bytes that were actually received.
This flag is useful when an application needs to ensure that it receives a complete message or data block in a single operation. The default behavior is to return as soon as any data is available, even if it is less than the requested amount.