MCPcopy Create free account
hub / github.com/OpenPrinting/cups / backendCheckSideChannel

Function backendCheckSideChannel

backend/network.c:25–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

23 */
24
25void
26backendCheckSideChannel(
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/*

Callers 2

mainFunction · 0.85
lpd_queueFunction · 0.85

Calls 1

backendNetworkSideCBFunction · 0.85

Tested by

no test coverage detected