netxduo
netxduo copied to clipboard
NetX BSD fails when select() is passed a timeout
trafficstars
I'm using the BSD wrapper described in:
https://learn.microsoft.com/en-us/azure/rtos/netx/appendix-d
The following call works:
status = select(fdmax+1, &readfds, 0, 0, 0);
However, the following call does not:
timeout.tv_sec = 1;
timeout.tv_usec = 0;
status = select(fdmax+1, &readfds, 0, 0, &timeout);
When the timeout is used, it appears recv() always returns an errno of EAGAIN (11).
Any suggestions?