| 23 | */ |
| 24 | |
| 25 | void |
| 26 | backendCheckSideChannel( |
| 27 | int snmp_fd, /* I - SNMP socket */ |
| 28 | http_addr_t *addr) /* I - Address of device */ |
| 29 | { |
| 30 | fd_set input; /* Select input set */ |
| 31 | struct timeval timeout; /* Select timeout */ |
| 32 | |
| 33 | |
| 34 | FD_ZERO(&input); |
| 35 | FD_SET(CUPS_SC_FD, &input); |
| 36 | |
| 37 | timeout.tv_sec = timeout.tv_usec = 0; |
| 38 | |
| 39 | if (select(CUPS_SC_FD + 1, &input, NULL, NULL, &timeout) > 0) |
| 40 | backendNetworkSideCB(-1, -1, snmp_fd, addr, 0); |
| 41 | } |
| 42 | |
| 43 | |
| 44 | /* |
no test coverage detected