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

Function httpShutdown

cups/http.c:2722–2738  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2720 */
2721
2722void
2723httpShutdown(http_t *http) /* I - HTTP connection */
2724{
2725 if (!http || http->fd < 0)
2726 return;
2727
2728#ifdef HAVE_TLS
2729 if (http->tls)
2730 _httpTLSStop(http);
2731#endif /* HAVE_TLS */
2732
2733#ifdef _WIN32
2734 shutdown(http->fd, SD_RECEIVE); /* Microsoft-ism... */
2735#else
2736 shutdown(http->fd, SHUT_RD);
2737#endif /* _WIN32 */
2738}
2739
2740
2741/*

Callers 1

cupsdCloseClientFunction · 0.85

Calls 1

_httpTLSStopFunction · 0.70

Tested by

no test coverage detected