Lines Matching refs:host
188 * unix UNIX Domain Sockets (same host only)
567 const char *host, const char *port, int previndex)
573 protocol, host, port);
601 const char *host, const char *port)
604 thistrans->TransName, protocol, host, port, -1);
615 const char *host, const char *port)
621 prmsg (2,"SocketOpenCOTSServer(%s,%s,%s)\n", protocol, host, port);
1315 char host[MAXHOSTNAMELEN];
1323 const char *host, const char *port)
1349 prmsg (2,"SocketINETConnect(%d,%s,%s)\n", ciptr->fd, host, port);
1351 if (!host)
1355 host = hostnamebuf;
1379 if (strcmp(host,addrlist->host) || strcmp(port,addrlist->port)) {
1397 strncpy(addrlist->host, host, sizeof(addrlist->host));
1398 addrlist->host[sizeof(addrlist->host) - 1] = '\0';
1409 res = getaddrinfo(host,port,&hints,&addrlist->firstaddr);
1412 "for %s:%s: %s\n", host, port, gai_strerror(res));
1430 "for %s:%s\n", host, port);
1466 "tcp", "tcp", host, port, ciptr->index);
1502 "tcp", "tcp", host, port, -1);
1549 /* check for ww.xx.yy.zz host string */
1551 if (isascii (host[0]) && isdigit (host[0])) {
1552 tmpaddr = inet_addr (host); /* returns network byte order */
1557 prmsg (4,"SocketINETConnect() inet_addr(%s) = %lx\n", host, tmpaddr);
1560 if ((hostp = _XGethostbyname(host,hparams)) == NULL) {
1562 host);
1566 if (hostp->h_addrtype != AF_INET) { /* is IP host? */
1567 prmsg (1,"SocketINETConnect: not INET host%s\n", host);
1645 * If multiple addresses are found for a host then we should
1715 * Make sure 'host' is really local.
1719 UnixHostReallyLocal (const char *host)
1726 if (strcmp (hostnamebuf, host) == 0)
1738 if (getaddrinfo(host, NULL, NULL, &otherhostaddr) != 0) {
1780 * A host may have more than one network address. If any of the
1781 * network addresses of 'host' (specified to the connect call)
1784 * and we know that 'host' is really a local host.
1793 if ((hostp = _XGethostbyname (host,hparams)) == NULL)
1853 const char *host, const char *port)
1859 prmsg (2,"SocketUNIXConnect(%d,%s,%s)\n", ciptr->fd, host, port);
1862 * Make sure 'host' is really local. If not, we return failure.
1869 if (host && *host && host[0]!='/' && strcmp (host, "unix") != 0 && !UnixHostReallyLocal (host))
1872 "SocketUNIXConnect: Cannot connect to non-local host %s\n",
1873 host);