Skip to content

Conversation

@dpgeorge
Copy link
Member

This PR gets iperf3.server() working in UDP and UDP reverse mode.

Tested on unix MicroPython (needs unix sockets to support sendall()), CPython and OPENMV_N6, in all 8 configurations (client/server x TCP/UDP x reverse).

The unix port of MicroPython has pollable objects (not fd's) and supports
`ticks_us`/`ticks_diff` natively.

Signed-off-by: Damien George <damien@micropython.org>
So it can be reused by the server code.

Signed-off-by: Damien George <damien@micropython.org>
The main issues were:
- incorrect magic response value
- should be using sendto instead of send for UDP

Signed-off-by: Damien George <damien@micropython.org>
@dpgeorge dpgeorge force-pushed the iperf3-fix-server-udp branch from 5309fcc to 6ca6f5b Compare December 2, 2025 03:25
@dpgeorge dpgeorge merged commit 6ca6f5b into micropython:master Dec 2, 2025
4 checks passed
@dpgeorge dpgeorge deleted the iperf3-fix-server-udp branch December 2, 2025 03:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant