net: zperf: Make UDP/TCP servers restartable

Make the TCP/UDP server functionality restartable. Provide a public API
to stop the TCP/UDP server.

Signed-off-by: Robert Lubos <robert.lubos@nordicsemi.no>
This commit is contained in:
Robert Lubos 2022-11-29 17:08:40 +01:00 committed by Carles Cufí
commit 87ca1c3329
6 changed files with 138 additions and 72 deletions

View file

@ -114,6 +114,8 @@ static int zperf_init(const struct device *unused)
zperf_udp_uploader_init();
zperf_tcp_uploader_init();
zperf_udp_receiver_init();
zperf_tcp_receiver_init();
return 0;
}