Re: Running echo_server on qemu_cortex_m3


Jukka Rissanen
 

Hi Michael,

On Tue, 2017-02-21 at 12:33 +0000, Goldman, Michael wrote:
Hi all,

BTY, regarding the documentation in: https://www.zephyrproject.org/do
c/subsystems/networking/qemu_setup.html#networking-with-qemu

When running "nc" in UDP, nc exits without waiting for reply from the
target application (echo_server), unlike the description in the doc.:
Note
You will need to Ctrl+C manually.
$ echo foobar | nc -u 192.0.2.1 4242
foobar

I can see the packet being sent to target and replayed back in
Wireshark.
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 :)



Thanks,
Michael

Cheers,
Jukka

Join devel@lists.zephyrproject.org to automatically receive all group messages.