lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] SYS mbox


From: Per Klint
Subject: Re: [lwip-users] SYS mbox
Date: Sat, 12 Nov 2011 12:42:44 +0100

11 nov 2011 kl. 18:55 skrev Simon Goldschmidt <address@hidden>:

Per Klint <address@hidden> wrote:

So my question is what will happen to those messages? Will they be
lost forever or will the lwip-stack retry again later?

Yes, they will be lost, that's the intention. You have to design the mbox sizes in a way that thins is OK for your application.

I'd rather not change the lwip stack code. But perhaps it is possible
to replace all calls to sys_mbox_trypost with sys_mbox_post instead?

Why would you need that?

To avoid to lose any messages!
But if it needs to work from ISR it's ofcourse not an option to do that.

Sys_mbox_trypost is meant to work from ISR, too, so converting it is no a good idea.

Is there a way to know how many mbox:es that will be created in
the system?

I think one for the tcpip_thread and one for every netconn or socket (used for RX packets for normal connections or accepted connections for TCP listeners).

Simon


Thank you very much for your input!

Best regards,

/// Per

reply via email to

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