I do this for TCP https://github.com/embassy-rs/embassy/blob/main/tests/perf-client/src/lib.rs https://github.com/embassy-rs/embassy/blob/main/tests/perf-server/src/main.rs https://github.com/embassy-rs/embassy/blob/main/tests/stm32/src/bin/eth.rs