|
From: | address@hidden |
Subject: | Re: [lwip-users] tcp_recved |
Date: | Wed, 12 Nov 2008 20:15:00 +0100 |
User-agent: | Thunderbird 2.0.0.17 (Macintosh/20080914) |
Charles Landau wrote:
I don't know that passage from heart, but of course, tcp_recved is for TCP only.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.
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
[Prev in Thread] | Current Thread | [Next in Thread] |