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

Function httpAddrPort

cups/http-addr.c:461–474  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

459 */
460
461int /* O - Port number */
462httpAddrPort(http_addr_t *addr) /* I - Address */
463{
464 if (!addr)
465 return (-1);
466#ifdef AF_INET6
467 else if (addr->addr.sa_family == AF_INET6)
468 return (ntohs(addr->ipv6.sin6_port));
469#endif /* AF_INET6 */
470 else if (addr->addr.sa_family == AF_INET)
471 return (ntohs(addr->ipv4.sin_port));
472 else
473 return (0);
474}
475
476
477/*

Callers 15

cupsdNetIFUpdateFunction · 0.85
cupsdAcceptClientFunction · 0.85
read_cupsd_confFunction · 0.85
service_add_listenerFunction · 0.85
dnssdUpdateDNSSDNameFunction · 0.85
cupsdStartListeningFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
lpd_queueFunction · 0.85
http-addrlist.cFile · 0.85
cups_connectFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected