Giuseppe Modugno wrote:
> And another thing I couldn't explain. The example uses pextension pointer for 
> malloc/free. However it sets file->data = file->pextension immediately.
>  
> So why don't use just file->data? It seems pextension is never used in lwip 
> code.

Exactly. This is an example that wants to show you can use pextension for 
anything you like
as it is not used by lwIP code internally.

Using ->data only works for files in one piece.

Simon

_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
https://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to