|
From: | address@hidden |
Subject: | RE : [lwip-users] netconn_connct returning always ERR_OK |
Date: | Mon, 21 Jan 2008 19:12:33 +0100 |
User-agent: | Thunderbird 2.0.0.9 (Windows/20071031) |
Marko Panger wrote:
1) netconn_new_with_proto_and_callback() creates the semaphore and the semaphore is initialized to 0. After that tcpip_apimsg() is invoked which sends the do_newconn() function to the main tcp thread. The tcpip_apimsg() function pends on the op_completed semaphore with 0 time.Just to ensure you get this right: '0' means infinite, not 'test and return' -> the app task should wait for the tcpip_thread to complete the function request.
Simon
[Prev in Thread] | Current Thread | [Next in Thread] |