Charles Landau wrote:
I'm confused about how to use the procedure tcp_recved().
See doc/rawapi.txt
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.
Looks like it was incorrectly cut'n'pasted from do_send.
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.
I've improved the comment:
- * Recv some data from a RAW or UDP pcb contained in a netconn
+ * Indicate data has been received from a TCP pcb contained in a netconn