lwip-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [lwip-devel] UDP iperf_server hints


From: Dirk Ziegelmeier
Subject: Re: [lwip-devel] UDP iperf_server hints
Date: Fri, 21 Sep 2018 16:23:47 +0200

TFTP is an example UDP application


HTH
Dirk


On Fri, Sep 21, 2018 at 4:21 PM antonio <address@hidden> wrote:
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 mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/lwip-devel

reply via email to

[Prev in Thread] Current Thread [Next in Thread]