[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] flow of lwip as a stream client
From: |
Bill Auerbach |
Subject: |
Re: [lwip-users] flow of lwip as a stream client |
Date: |
Fri, 2 Mar 2012 11:15:35 -0500 |
>-----Original Message-----
>So, why don't you just use your received pbuf(s) directly in your audio
>function ?
>This way:
>- the size of your "buffer" (made of pbufs) is the size of your TCP
>window
>- the server cannot send more
>- no copy, less memory used (only the TCP window vs buffer + TCP window)
Great idea. You can keep a queue of pbufs of incoming data. Which leads to
a question - what if you do this until lwIP runs out of pbufs? Does it
throttle back automatically when it's out of pbufs?
Bill