[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Antw: Re: [lwip-users] sys_mbox_post gets wron parameter
From: |
Matthias Weisser |
Subject: |
Antw: Re: [lwip-users] sys_mbox_post gets wron parameter |
Date: |
Thu, 31 May 2007 09:13:05 +0200 |
>>> Jonathan Larmour <address@hidden> schrieb am 30.05.2007 um 17:23:
> Matthias Weisser wrote:
>> Hi
>>
>> today I started to test around with the socket interface of lwip and
>> wanted to implement a simple echo server and failed :-)
>>
>> I saw that socket() never returned and debugged it to sys_mbox_post
>> never returned from posting the message to the mailbox. This is because
>> the mbox parameter (which is a typedefed int) is wrong. The only mailbox
>> which is created returns 2119 (id from the os) to the lwip stack but
>> then the sys_mbox_post is called with 0 as mbox parameter. Thanks for
>> any help.
>
> This sounds like a problem in your port. In your sources you should find
I am sure it is a problem in my port :-)
> tcpip.c inside which is a function tcpip_apimsg() which is posting to
> "mbox", which is a static defined as:
>
> static sys_mbox_t mbox;
>
> I bet this is the reason for the 0 parameter.
Yes, it is. I used an existing port which called ip_init(), tcp_init() and
udp_init() but not tcpip_init(). After changing this I have now a working echo
server. Thanks a lot.
Matthias