Skip to content
Commit d47e8039 authored by Robert Lubos's avatar Robert Lubos Committed by Anas Nashif
Browse files

net: sockets: Implement MSG_WAITALL recv flag



Implement MSG_WAITALL flag for stream sockets. Setting this flag on
`recv()` call will make it wait until the requested amount of data is
received.

In case both, MSG_WAITALL all is set and SO_RCVTIMEO option configured
on a socket, follow the Linux behavior, i. e. when the requested amount
of data is not received until the timeout expires, return the data
received so far w/o an error.

Signed-off-by: default avatarRobert Lubos <robert.lubos@nordicsemi.no>
parent a81765bb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment