lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] flow of lwip as a stream client


From: Stephane Lesage
Subject: Re: [lwip-users] flow of lwip as a stream client
Date: Thu, 1 Mar 2012 17:52:24 +0100

>>I think that you should buffer the pbufs, and NOT call tcp_recved()
>> until you consume a pbuf in your audio task.
> 
> Nice idea but the function tcp_recved() is callback in the raw API so
> that is not possible as I understand it.

tcp_recved() is not a callback, it's an API function you must call to
signal that you consumed some data from the TCP window.
It's usually called from the receive callback, but not necessarily.
Trex7 can add the pbuf to a linked list, and call it outside the
callback, provided that he has exclusive access to lwIP core: not using
an OS nor calling lwIP from interrupts


-- 
Stephane Lesage



reply via email to

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