lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] throttle the output


From: Kieran Mansley
Subject: Re: [lwip-users] throttle the output
Date: Mon, 14 May 2012 17:01:42 +0100

On Fri, 2012-05-11 at 14:11 -0400, Andrew Xiang wrote:
> I use the RAW API.

There's a macro tcp_sndbuf(pcb) that you can use to find out the current
fill level of the queue.  You may also need to pay attention to
tcp_sndqueuelen(pcb) which is used to prevent lots of small packets
using up lots of resources and so can prevent a tcp_write() from
succeeding.  Have a look in the source at how these two are used to give
an idea of the tests you need to make.

Kieran




reply via email to

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