[Top][All Lists]

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

Re: [lwip-users] Recv en socket TCP

From: Oscar F
Subject: Re: [lwip-users] Recv en socket TCP
Date: Mon, 5 Oct 2009 14:27:53 +0200

One thing reading the wiki lwip,  do you recommend me use the model of memory MEM_LIBC_MALLOC and forget MEM_SIZE?


On Mon, Oct 5, 2009 at 2:06 PM, Oscar F <address@hidden> wrote:
Thanks again, only is for achiving memory, because i don´t know about my problem, i hope to understand about the crash of application. I ´m going to write a lot of variables to see the different to receive for a port working and a port don´t work!!
I´ll tell you the result.


On Mon, Oct 5, 2009 at 1:29 PM, Kieran Mansley <address@hidden> wrote:
On Mon, 2009-10-05 at 11:49 +0200, Oscar F wrote:
> another thing,i would like reduce the amount of memory, maybe the
> reason of the problem is that.
> I use TCP coonection with socket, need 8 socket the can yuo say me
> that define of lwipops.h can i reduce and forgot, for example RAW
> option?

> /* Number of raw connection PCBs */
> #define MEMP_NUM_RAW_PCB                1

You can set that to zero for you application.

Everything else looks like it's set so it should just about work, but
won't give great performance (TCP needs memory to get good performance).
There certainly isn't anything that looks like it's set too high.

The best way to deal with these settings is to set them high enough that
it works, then once you've got your application sorted using the lwIP
stats to see which resources aren't being heavily used, and tune the
settings accordingly.  Don't try and optimise your application before
you've got it working.


lwip-users mailing list

reply via email to

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