[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [lwip-users] Overview of mboxes
From: |
jack W |
Subject: |
Re: [lwip-users] Overview of mboxes |
Date: |
Mon, 29 Nov 2004 15:58:39 +0800 |
hi Chris Frost
i think that mbox is a kind of info queue ,so we send / receive data by the
mbox . if we use the mbox among some tasks ,we must delcare the mbox as the
global variable.
if you don't use lwip on one kind operate system ,you needn't use mbox and sem.
you can use raw_api to achieve your task. but if you run lwip on one kind of
operate system such as uc/os ,you must use mbox and sem . only using them ,you
can compltely finished your task.
Since you use the lwip as a stack, you can use mbox to post data when your
network stack receive data and give these data to these task that is waiting
for these data.
hope these info to help you
>I was wondering if someone might be able to give me/point me towards
>just a short overview of the purpose of mboxes in lwip? For example,
>are they for intrathread communication only? Interthread?
>Interprocess? (If interprocess, is each mailbox global?) Just a
>little bit of a high level overview would be very helpful, I hope to
>be able to dive in with such very appreciated help.
>
>Related, I'm not clear on whether thread support, or when thread support, is
>needed. Are there non-performance reasons (features?) for making
>thread support available? I'd like to use lwip as a network stack
>running in one process with other processes being able to use it for
>network communication, I don't know if this affects the answer to this
>question?
>
>thanks in advance,
>--
>Chris Frost | <http://www.frostnet.net/chris/>
>-------------+----------------------------------
>Public PGP Key:
> Email address@hidden with the subject "retrieve pgp key"
> or visit <http://www.frostnet.net/chris/about/pgp_key.phtml>
>
>
>_______________________________________________
>lwip-users mailing list
>address@hidden
>http://lists.nongnu.org/mailman/listinfo/lwip-users
= = = = = = = = = = = = = = = = = = = =
致
礼!
jack W
address@hidden
2004-11-29