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

Function httpSetTimeout

cups/http.c:2694–2713  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2692 */
2693
2694void
2695httpSetTimeout(
2696 http_t *http, /* I - HTTP connection */
2697 double timeout, /* I - Number of seconds for timeout,
2698 must be greater than 0 */
2699 http_timeout_cb_t cb, /* I - Callback function or @code NULL@ */
2700 void *user_data) /* I - User data pointer */
2701{
2702 if (!http || timeout <= 0.0)
2703 return;
2704
2705 http->timeout_cb = cb;
2706 http->timeout_data = user_data;
2707 http->timeout_value = timeout;
2708
2709 if (http->fd >= 0)
2710 http_set_timeout(http->fd, timeout);
2711
2712 http_set_wait(http);
2713}
2714
2715
2716/*

Callers 6

do_monitor_printer_stateFunction · 0.85
do_testsFunction · 0.85
mainFunction · 0.85
monitor_printerFunction · 0.85
_httpTLSStartFunction · 0.85
_httpTLSStartFunction · 0.85

Calls 2

http_set_timeoutFunction · 0.85
http_set_waitFunction · 0.85

Tested by

no test coverage detected