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

Function httpGetReady

cups/http.c:1113–1126  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1111 */
1112
1113size_t /* O - Number of bytes available */
1114httpGetReady(http_t *http) /* I - HTTP connection */
1115{
1116 if (!http)
1117 return (0);
1118 else if (http->used > 0)
1119 return ((size_t)http->used);
1120#ifdef HAVE_TLS
1121 else if (http->tls)
1122 return (_httpTLSPending(http));
1123#endif /* HAVE_TLS */
1124
1125 return (0);
1126}
1127
1128
1129/*

Callers 4

cupsdReadClientFunction · 0.85
cupsdWriteClientFunction · 0.85
mainFunction · 0.85
select_timeoutFunction · 0.85

Calls 1

_httpTLSPendingFunction · 0.70

Tested by

no test coverage detected