Re: [lwip-users] How to find out if I can send out more UDP packets?

2017-06-01 Thread goldsi...@gmx.de
Xun Chen wrote: Maybe I should track down the return from pbuf_alloc to confirm that I indeed have a valid buffer Yes, that would indeed be a *very* good idea! Given the question in the subject: you'll just have to try again. Unfortunately, there's currently no way of registering a callback

Re: [lwip-users] How to find out if I can send out more UDP packets?

2017-05-30 Thread Xun Chen
Subject: Re: [lwip-users] How to find out if I can send out more UDP packets? Message-ID: <f9ed410a-78fd-68fb-2849-a31051940...@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed sendto adds a header to the pbuf you allocated and calls the send function on your driv

[lwip-users] How to find out if I can send out more UDP packets?

2017-05-11 Thread Xun Chen
Hi there, I use udp_sendto to output packets, if I space them in time to make sure the packets are sent, everything is fine, but if I call udp_sendto too frequently, I will run into error code -1, out of memory. Which lwip raw API can I call to find out if I have the resource before I