Lines Matching defs:timeout
668 struct timeval timeout;
701 timeout.tv_sec = device[dev_no].bjnp_ip_timeout /1000;
702 timeout.tv_usec = device[dev_no].bjnp_ip_timeout %1000;
705 select (sockfd + 1, &fdset, NULL, NULL, &timeout)) <= 0)
732 (LOG_CRIT, "udp_command: ERROR - no data received (timeout = %d)\n", device[dev_no].bjnp_ip_timeout ) );
1399 struct timeval timeout;
1418 timeout.tv_sec = device[devno].bjnp_ip_timeout /1000;
1419 timeout.tv_usec = device[devno].bjnp_ip_timeout %1000;
1421 while ( ( (result = select (fd + 1, &input, NULL, NULL, &timeout)) <= 0) &&
1562 struct timeval timeout;
1597 timeout.tv_sec = device[devno].bjnp_ip_timeout /1000;
1598 timeout.tv_usec = device[devno].bjnp_ip_timeout %1000;
1600 while (((result = select (fd + 1, &input, NULL, NULL, &timeout)) <= 0) &&
1758 /* get device specific ip timeout if any */
1760 if (strncmp(args, "timeout=", strlen("timeout=")) == 0)
1762 ip_timeout = atoi(args + strlen("timeout="));
1847 /* Leave timeout values unchanged, as they were probably specified by the user */
1946 int add_timeout_to_uri(char *uri, int timeout, int max_len)
1975 /* add timeout value only if missing in URI */
1977 if (strstr(args, "timeout=") == NULL)
1979 sprintf(args, "timeout=%d", timeout);
2029 struct timeval timeout;
2067 if (strncmp(conf_devices[i], "bjnp-timeout=", strlen("bjnp-timeout="))== 0)
2069 timeout_default = atoi(conf_devices[i] + strlen("bjnp-timeout=") );
2070 PDBG ( bjnp_dbg (LOG_DEBUG, "Set new default timeout value: %d ms.", timeout_default));
2205 timeout.tv_sec = 0;
2206 timeout.tv_usec = BJNP_BC_RESPONSE_TIMEOUT * BJNP_USLEEP_MS;
2211 while (select (last_socketfd + 1, &active_fdset, NULL, NULL, &timeout) > 0)
2214 (int) timeout.tv_sec, (int) timeout.tv_usec));
2261 sprintf (uri, "%s://%s:%d/timeout=%d", protocol_defs->method_string, scanner_host,
2269 timeout.tv_sec = 0;
2270 timeout.tv_usec = BJNP_BC_RESPONSE_TIMEOUT * BJNP_USLEEP_MS;
2372 /** Set the timeout for interrupt reads.
2374 * @param timeout the new timeout in ms
2377 sanei_bjnp_set_timeout (SANE_Int devno, SANE_Int timeout)
2380 timeout));
2382 device[devno].bjnp_scanner_timeout = timeout;
2609 int timeout;
2641 timeout = device[dn].bjnp_scanner_timeout /1000 + 1;
2644 timeout++;
2663 timeout = timeout - interval;
2664 if (timeout <= 0)
2667 } while ( timeout > 0 ) ;