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:m.zen...@mobatime.com]
Gesendet: Freitag, 29. Januar 2010 13:39
An: lwip-users@nongnu.org
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!




_______________________________________________
lwip-users mailing list
lwip-users@nongnu.org
http://lists.nongnu.org/mailman/listinfo/lwip-users

Reply via email to