[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[lwip-devel] UDP iperf_server hints
From: |
antonio |
Subject: |
[lwip-devel] UDP iperf_server hints |
Date: |
Fri, 21 Sep 2018 07:20:41 -0700 (MST) |
Hi all,
Any hints how to add UDP functionality (I am thinking more about server. I
can add a client later)?
I have a basic idea.
iperf_udpserver_init()
1. create a UDP PCB
2. Bind UDP PCP
2.1 create/alloc a iperf_state
3. set UDP PCB recv function -> pass recv_fn and iperf_state
On upd_recv_fun
1. if pbuf is not NULL, read number of bytes (p->tot_len), free pbuf.
2. if pbuf is NULL client is gone.
Any hints are welcome.
Thanks in advance.
--
Sent from: http://lwip.100.n7.nabble.com/lwip-devel-f11621.html
- [lwip-devel] UDP iperf_server hints,
antonio <=