Skip to content
Commit f54dee65 authored by Marcin Niestroj's avatar Marcin Niestroj Committed by Marti Bolivar
Browse files

net: sockets: implement shutdown() method for net_context sockets



Add basic shutdown() implementation for net_context sockets, which
handles only SHUT_RD as 'how' parameter and returns -ENOTSUP for SHUT_WR
and SHUT_RDWR. The main use case to cover is to allow race-free wakeup
of threads calling recv() on the same socket.

Signed-off-by: default avatarMarcin Niestroj <m.niestroj@grinn-global.com>
parent 8eb2565d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment