lwip-users
[Top][All Lists]
Advanced

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

[lwip-users] WG: select timeout


From: Mathias Zenger
Subject: [lwip-users] WG: select timeout
Date: Mon, 1 Feb 2010 13:32:41 +0100

Hi,

I still have this problem with the select() function. Does anybody have
experience with the select() timeout in lwIP? If it runs fine for you
probably the port on my platform is faulty. Thanks for your assistance.

Regards,
Mathias


-----Ursprüngliche Nachricht-----
Von: Mathias Zenger [mailto:address@hidden
Gesendet: Freitag, 29. Januar 2010 13:39
An: address@hidden
Betreff: select timeout


Hi,

I have a little problem with select() (socket API, lwIP 1.3.0). I would like
to block for a maximum time of 5 seconds, waiting for incoming data.
Therefor I set up the following structure:

struct timeval socket_to;
socket_to.tv_sec = 5;
socket_to.tv_usec = 0;


Calling select():
...
ret = select(FD_SETSIZE, &fd, NULL, NULL, &socket_to);
...


My problem is that select() does only return if any data was received. The
timeout seems to be ignored. Is there a known issue or am I handling the
select timeout wrong? (By the way: blocking infinite with timeout parameter
== NULL works as expected).

Thanks for your help!






reply via email to

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