Displaying 1 result from an estimated 1 matches for "poll_error".
Did you mean:
poll_err
2012 Oct 12
0
NUT drivers socket polling issues
...ot very happy with the poll mechanism design as whole.
I mean, typically, you implement the poll as { poll(); process(); }*
loop; in pseudo-code:
shut_down = false;
fd_set.init(...);
timeout.set(...);
while (!shut_down) {
status = poll(fd_set, timeout);
switch (status) {
case POLL_ERROR:
// Handle error ...
break;
case POLL_TIMEOUT:
// Handle timeout ...
timeout.set(...);
break;
case POLL_EVENT:
// Handle data ...
break;
}
I.e. you typically have a poll function cal...