On Tue, 2017-02-21 at 12:33 +0000, Goldman, Michael wrote:
BTY, regarding the documentation in: https://www.zephyrproject.org/do
When running "nc" in UDP, nc exits without waiting for reply from the
target application (echo_server), unlike the description in the doc.:
You will need to Ctrl+C manually.
$ echo foobar | nc -u 192.0.2.1 4242
I can see the packet being sent to target and replayed back in
On TCP, nc does wait for response and I can see "foobar" printed and
Ctrl+C is needed to close nc.
Indeed, the documentation is wrong here. I will send a patch for that
one. Thanks for reporting this.
I searched over the web and read that because UDP is connectionless
protocol, nc is not supposed to wait for response.
Did I do something wrong?
No, you did everything right here :)