lwip-users
[Top][All Lists]
Advanced

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

Re: [lwip-users] lwip_accept acceptmbox is NULL


From: address@hidden
Subject: Re: [lwip-users] lwip_accept acceptmbox is NULL
Date: Tue, 07 Oct 2008 18:16:18 +0200
User-agent: Thunderbird 2.0.0.17 (Macintosh/20080914)

Kieran Mansley wrote:
On Tue, 2008-10-07 at 02:44 -0700, Emmanuel Baguia Jr. wrote:
My problem here is that the acceptmbox value is NULL inside the accept
() function which will prompt to "invalid acceptmbox" assertion
message. I have read some discussions that the acceptmbox is
initialized in the lwip_listen() function which will eventually call
the netconn_listen function.

That's the way it should work.  If you're having to initialise this
yourself something is wrong.  Try and work out why it's not getting set
in the "do_listen()" function when you call netconn_listen or
lwip_listen
A fast way to see if there's an error or not (in do_listen(), I mean), would be to check conn->err after netconn_listen() returned. If conn->acceptmbox is NULL, conn->err should be != ERR_OK.

Simon




reply via email to

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