Jonathan Larmour wrote:
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

Thanks.
I've updated http://lwip.wikia.com/wiki/Raw/native_API and added new pages with information on UDP and TCP from doc/rawapi.txt, including some corrections. Feel free to review for accuracy and update.


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

Reply via email to