lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] timeout argument in sys_arch_*() functions


From: kuwa
Subject: Re: [lwip-users] timeout argument in sys_arch_*() functions
Date: Fri, 17 Jun 2005 17:30:51 +0900 (JST)

Hi,

From: Mitani Hiroshi <address@hidden>
Subject: Re: [lwip-users] timeout argument in sys_arch_*() functions
Date: Fri, 17 Jun 2005 16:30:12 +0900

> Thank you. This helps me. I could write my sys_arch.c.
> But I have met next problem. Socket() does not work.
> It seems that it is waiting (forever) for message in
> netconn_new_with_proto_and_callback():sys_mbox_fetch(conn->mbox, NULL);.
> 
> Who will send a message to this mailbox?

Assuming that you are porting lwIP on some multi-threaded system...

netconn_new_with_proto_and_callback() sends a msg to conn->mbox
and waits for tcpip_thread processing it.

tcpip_thread will handle the msg and call
sys_mbox_post(msg->conn->mbox, NULL) at the end of do_new_conn() in
api_msg.c.

Hope that helps,

Shuji Kuwahara




reply via email to

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