Commit 91ec922
committed
examples/usercmodule/iperf3_lwip: Add TCP client and server functions.
Implemented direct lwIP PCB API for high-performance TCP testing:
- client(host, port, duration): Connect and send data
- server(port, duration): Listen and receive data
- Heap-allocated 16KB buffer (lazy initialization)
- Zero-copy transmission with TCP_WRITE_FLAG_MORE
- TCP_NODELAY for maximum throughput
Tested on OpenMV N6 (STM32N657 @ 800MHz):
- TCP TX: 474 Mbits/sec (netcat server on PC)
- TCP RX: Server accepts connections and receives data correctly
Based on ciperf module design achieving 489 Mbits/sec.
Signed-off-by: Andrew Leech <[email protected]>1 parent 1d09b67 commit 91ec922
1 file changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
83 | 83 | | |
84 | 84 | | |
85 | 85 | | |
86 | | - | |
| 86 | + | |
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
| |||
293 | 293 | | |
294 | 294 | | |
295 | 295 | | |
296 | | - | |
| 296 | + | |
297 | 297 | | |
298 | 298 | | |
299 | 299 | | |
| |||
397 | 397 | | |
398 | 398 | | |
399 | 399 | | |
400 | | - | |
| 400 | + | |
401 | 401 | | |
402 | 402 | | |
403 | 403 | | |
| |||
0 commit comments