lwip-users
[Top][All Lists]
Advanced

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

Re: RE : [lwip-users] netconn_connct returning always ERR_OK


From: Jonathan Larmour
Subject: Re: RE : [lwip-users] netconn_connct returning always ERR_OK
Date: Mon, 21 Jan 2008 15:58:55 +0000
User-agent: Mozilla Thunderbird 1.0.8-1.1.fc3.4.legacy (X11/20060515)

Marko Panger wrote:
Hi again,

I'm still unable to reproduce the proper behavior or the behavior as Frédéric described below. The point is still that netconn_connect() returns ERR_OK even if there is nobody listening on the other side.

What happens behind the scenes is that a message will get posted to the tcpip thread's mailbox, and the calling thread should wait on a per-connection semaphore (called op_completed) for the tcpip thread to indicate that the operation has completed.

Perhaps somehow that semaphore did not have the correct state before the call - perhaps it had already been signaled? Or had not been created in the port with a value of 0 - in netconn_alloc() in api_msg.c, lwIP requests it to be created with a value of 0, but perhaps something doesn't do it right in the port?

Jifl
--
eCosCentric Limited      http://www.eCosCentric.com/     The eCos experts
Barnwell House, Barnwell Drive, Cambridge, UK.       Tel: +44 1223 245571
Registered in England and Wales: Reg No 4422071.
------["The best things in life aren't things."]------      Opinions==mine




reply via email to

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