zephyr/samples/net/sockets/echo_client/src
Marcin Niestroj 498888d764 samples: sockets: echo_client: assume connected without connmgr
When connection manager (CONFIG_NET_CONNECTION_MANAGER) is disabled,
application starts right away. Scenario that it covers is when static
networking is used, like with emulators (QEMU, Native Sim, ...).

Since 'connected' flag was not set in such scenario, the internal loop
inside start_client() has ended up early and stop_udp_and_tcp() was called
quickly after starting TCP and UDP clients.

Set 'connected = true', when connection manager is disabled, so that it is
assumed that connection is working for the whole duration of the
echo-client sample.

Signed-off-by: Marcin Niestroj <m.niestroj@emb.dev>
2023-11-13 09:52:12 +01:00
..
ca_certificate.h
common.h samples: net: echo_client: Fix build with UDP disabled 2023-07-17 17:21:33 -04:00
dummy_psk.h
echo-apps-cert.der
echo-client.c samples: sockets: echo_client: assume connected without connmgr 2023-11-13 09:52:12 +01:00
tcp.c random: Rename random header 2023-10-10 14:23:50 +03:00
udp.c samples: fix thread function signatures 2023-10-30 12:24:34 +01:00
vlan.c includes: prefer <zephyr/kernel.h> over <zephyr/zephyr.h> 2022-09-05 16:31:47 +02:00