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


_______________________________________________
lwip-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to