You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your enhancement proposal related to a problem? Please describe.
The socketpair(2) system call was recently added as experimental.
It would be good to have an example for using it.
Describe the solution you'd like
A simple sample application that demonstrates several threads communicating over several socket pairs, preferably using the BSD Sockets API and standard POSIX system calls such as read(2) and write(2).
I have a sample application that I could make a PR for.
Currently works fine compiling natively (i.e. using Makefile.posix) and building for Zephyr target native_posix_64. However, I run into some issues when moving to qemu_cortex_m3 likely to some C++ things that are not yet supported in Zephyr. Might require some slight modification.
Describe alternatives you've considered
Not using C++.
Additional context
The text was updated successfully, but these errors were encountered:
cfriedt
changed the title
demo application for socketpair
sample and writeup for socketpair
May 21, 2020
Support for the socketpair(2) system call was recently
added for 2.3.0 .
This change adds a sample application that demonstrates
how it can be used.
Fixes#25527
Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
krip-tip
pushed a commit
to krip-tip/zephyr-local
that referenced
this issue
May 30, 2020
Support for the socketpair(2) system call was recently
added for 2.3.0 .
This change adds a sample application that demonstrates
how it can be used.
Fixeszephyrproject-rtos#25527
Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
Is your enhancement proposal related to a problem? Please describe.
The socketpair(2) system call was recently added as experimental.
It would be good to have an example for using it.
Describe the solution you'd like
A simple sample application that demonstrates several threads communicating over several socket pairs, preferably using the BSD Sockets API and standard POSIX system calls such as read(2) and write(2).
I have a sample application that I could make a PR for.
Currently works fine compiling natively (i.e. using Makefile.posix) and building for Zephyr target native_posix_64. However, I run into some issues when moving to qemu_cortex_m3 likely to some C++ things that are not yet supported in Zephyr. Might require some slight modification.
Describe alternatives you've considered
Not using C++.
Additional context
The text was updated successfully, but these errors were encountered: