[email protected] wrote:
> I have the following problem and question:
> I use LWIP with an arm microcontroller and the application has an active 
> TCP connection.
> Now the question is how can I protect from an overflow of received data?

The only option you have is to not update the window (i.e. don't call 
tcp_recved until you have more buffer space available). However, this means 
that you have to be prepared to buffer a full tcp window (by not freeing the 
pbufs passed to your recv callback function until you processed them - and not 
calling tcp_recved). Everything else you need regarding flow control has to be 
implemented in your application protocol, i.e. on top of tcp.

Simon
-- 
GMX DSL: Internet-, Telefon- und Handy-Flat ab 19,99 EUR/mtl.  
Bis zu 150 EUR Startguthaben inklusive! http://portal.gmx.net/de/go/dsl

_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to