lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lwip-users] Re: [lwip] Correct procedure in callback functions set with


From: Kieran Mansley
Subject: [lwip-users] Re: [lwip] Correct procedure in callback functions set with tcp_recv() & udp_recv()
Date: Wed, 08 Jan 2003 23:57:38 -0000

On Tue, 16 Jul 2002, paul wisbey wrote:

> Hi,
>    the rawapi.txt mentions that tcp_recved() should be called after
> receiving tcp segments, ie. when the function set with tcp_recv() is called.
>   Should I also be calling pbuf_free()?  (I've had problems if I don't do
> this).  Is this different with the corresponding UDP callback function?  (I
> haven't tried that yet).  Thanks,

Yes, you should also call pbuf_free, once you've finished with the data.
This might not be straight away, but if you don't you'll run out of pbufs.
I'm pretty sure this is the same for UDP.

Kieran



[This message was sent through the lwip discussion list.]




reply via email to

[Prev in Thread] Current Thread [Next in Thread]