Charles Landau wrote:
I'm confused about how to use the procedure tcp_recved().
There is an example of its use in do_recv() in api/api_msg.c. The
comment on that procedure says "Recv some data from a RAW or UDP pcb"
which seems clearly wrong.
I don't know that passage from heart, but of course, tcp_recved is for
TCP only.
If someone can explain how to use tcp_recved and what it means for
storage management, I'll document it at lwip.wikia.com. I don't have the
authority to update api/api_msg.c.
tcp_recved means that you have processed the data and result in a window
update (in contrast to an ACK, which is sent when lwIP successfully
received a correct TCP frame).
'Storage management' is the responsibility of your application (if using
raw or netconn API): if you received a pbuf from one of the functions,
you are responsible for it.
Simon
_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users