lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] Managing pbufs for sending UDP


From: Rob Agar
Subject: [lwip-users] Managing pbufs for sending UDP
Date: Wed, 7 Jun 2017 10:28:37 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.1.1

Hi all,

My embedded application sends UDP messages of varying lengths, depending on the contents. I would appreciate advice on the recommended way to manage the pbuf's involved.

Right now I'm calling pbuf_alloc / pbuf_free every time a message needs sending using PBUF_RAM. It appears to work fine, but I'm worried it will lead to memory fragmentation nastiness after it's been running for a long time. Should I be worried?

Also, am I right in thinking that PBUF_POOL is for receiving messages *only* , not for sending?

cheers

Rob





reply via email to

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