search for: poll_and_process

Displaying 1 result from an estimated 1 matches for "poll_and_process".

2012 Oct 12
0
NUT drivers socket polling issues
...... timeout.set(...); break; case POLL_EVENT: // Handle data ... break; } I.e. you typically have a poll function call (select is used in NUT), and you process the result of it in a loop. In driver/main.c, this is done like this { poll_and_process(); }*, i.e. there's an empty loop around function dstate_poll_fds which calls select, processes the result and returns. This approach has the drawback that logic of the { poll(); process(); }* loop is cut by an interface; you need to propagate info about poll result through that interface, whic...