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

Function connect_server

berkeley/lpq.c:282–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

280 */
281
282static http_t * /* O - New HTTP connection */
283connect_server(const char *command, /* I - Command name */
284 http_t *http) /* I - Current HTTP connection */
285{
286 if (!http)
287 {
288 http = httpConnectEncrypt(cupsServer(), ippPort(),
289 cupsEncryption());
290
291 if (http == NULL)
292 {
293 _cupsLangPrintf(stderr, _("%s: Unable to connect to server."), command);
294 exit(1);
295 }
296 }
297
298 return (http);
299}
300
301
302/*

Callers 1

mainFunction · 0.85

Calls 5

httpConnectEncryptFunction · 0.85
cupsServerFunction · 0.85
ippPortFunction · 0.85
cupsEncryptionFunction · 0.85
_cupsLangPrintfFunction · 0.85

Tested by

no test coverage detected