>>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

_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to