Skip to content
Commit e0ac4eb5 authored by Christopher Friedt's avatar Christopher Friedt Committed by Carles Cufi
Browse files

net: sockets: socketpair: support querying bytes available



In order to get a semi-accurate assessment of how many
bytes are available on a socket prior to performing a read,
BSD and POSIX systems have typically used

`ioctl(fd, FIONREAD, &avail)`

We can support this in Zephyr as well with little effort, so
add support for `socketpair()` sockets as an example.

Signed-off-by: default avatarChristopher Friedt <cfriedt@meta.com>
parent bd0df542
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment