Skip to content
Commit 78e8e0da authored by Robert Lubos's avatar Robert Lubos Committed by Carles Cufí
Browse files

net: sockets: Make use of the status field reported by TCP



Make use of the status field, reported by TCP, in the socket receive
callback. This allows to differentiate a graceful connection shutdown
from actual errors at TCP level (transmission timeout or RST received).
In case of error reported from TCP layer, set a new SOCK_ERROR flag on
the socket, and store the error code in the net_context user_data.

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