Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sample and writeup for socketpair #25527

Closed
cfriedt opened this issue May 21, 2020 · 0 comments · Fixed by #25528
Closed

sample and writeup for socketpair #25527

cfriedt opened this issue May 21, 2020 · 0 comments · Fixed by #25528
Labels
area: POSIX POSIX API Library Enhancement Changes/Updates/Additions to existing features

Comments

@cfriedt
Copy link
Member

cfriedt commented May 21, 2020

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

@cfriedt cfriedt changed the title demo application for socketpair sample and writeup for socketpair May 21, 2020
@carlescufi carlescufi added the Enhancement Changes/Updates/Additions to existing features label May 21, 2020
@carlescufi carlescufi added the area: POSIX POSIX API Library label May 21, 2020
carlescufi pushed a commit that referenced this issue May 27, 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.

Fixes zephyrproject-rtos#25527

Signed-off-by: Christopher Friedt <chrisfriedt@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: POSIX POSIX API Library Enhancement Changes/Updates/Additions to existing features
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants