Skip to content
Commit 6748d588 authored by Luca Fancellu's avatar Luca Fancellu Committed by Carles Cufí
Browse files

net: zperf: allow TCP receiver to handle multiple connections



Currently the zperf_tcp_receiver can handle only one TCP connection
each time, modify the code to poll and handle multiple connections.

Take the occasion to unify the bind and listen part of the code
between ipv4 and ipv6 part using a structure introduced to handle
the multiple connections.

Now in case the zsock_recv fails, we can't stop every connection
and fail through the error label, so just print the error message
and report the failure through the callback.

Signed-off-by: default avatarLuca Fancellu <luca.fancellu@arm.com>
parent d485ef02
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment