-
Notifications
You must be signed in to change notification settings - Fork 2k
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
native: add -t <port> option to native again #3908
Conversation
This shouldn't be part of riot. |
What and why not? |
Sorry, let me rephrase. IMHO this should not be in the RIOT native port, but be provided by a small external tool. |
So instead of putting stdio through something else than stdio (sockets in this case) we should parse stdio and provide (e.g.) UART-like behavior through an external tool?!? |
No. RIOT native already has in-RIOT stdio <-> linux stdio. Adding support to pipe all that through a socket can of course be done within RIOT, but it adds a lot of unnecessary complexity. I'd rather see a small tool that does the job from the outside. Maybe we can even reuse something existing, e.g., |
+1 for the socat idea. Maybe it's really the better route to go with external tools here? |
👍 |
I just tested quickly with socat and one thing I noticed is that the pipe breaks when I attach/detach several times from that running instance. We need to cleverly bypass this somehow |
@cgundogan How do you test that? |
@kaspar030 can you have a look at des-testbed/desvirt#17 ? Is this what you had in mind? |
I have no particular opinion on the topic. |
I'll close this in favour of des-testbed/desvirt#17. |
This PR brings back the option to set a port and daemonize native in order to use it with desvirt or netcat.
Can be tested with
./bin/native/gnrc_networking -t 12107
and thennc localhost 12107
.@emmanuelsearch @thomaseichinger can anyone of you test this on OS X?