Try using "lwip_select" from the socket interface from sockets.c.
(This is also defined to be "select" in socket.h.) The sockets
interface is very close to that found in Linux/Unix, so you can get
most of what you need to know from documents about Linux/Unix. It's
best to check the source, though. lwIP is small, and some features are
Avant Pro Trust wrote:
I am Dorin Mitrut from Bucharest,
I work to an embedded system and I use LWIP library.
Probably you have been asked many times on this problem but I do not
have found one detailed answer to this problem:
As you know, if we use netconn_recv to
receive dates, the thread remain
blocked until the server close the connection or send some dates.
I have a thread where I want to check
only if data exist and, if not,
pass to next actions.
Do you can give me one practical solution to avoid blocking thread when
check dates existence with
Is it any kind to resolving this
problem using only LWIP library?
Can I use another function to verifing
dates exictence who not block the thread?