Skip to content
Commit 189d8b8a authored by Christopher Friedt's avatar Christopher Friedt Committed by Stephanos Ioannidis
Browse files

samples: net: socketpair: clean up sample app



* use `read()` instead of `recv()`
* use `write()` instead of `send()`
* use `CONFIG_POSIX_API` and drop `<zephyr/posix/..>` prefix
* use `perror()`
* fix `Makefile.posix` to use `CC` instead of `CXX`
* fix race condition which caused an unhandled EOF
  and infinite loop, by adding a readback / echo
* Updated the docs to reflect the expected stdout
* Improve doc clarity

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