Lines Matching defs:host
39 char *host;
80 cache_nces(char *host, int port, int numnce, nce_entry_t **nces)
88 fprintf(stderr, "cache_nces: caching %s/%d\n", host, port);
94 new->host = strdup(host);
95 if (new->host == NULL)
108 if (strcmp(host, n->host) == 0 && port == n->port)
127 fprintf(stderr, "cache_nces: replacing %s/%d\n", n->host, n->port);
130 free(n->host);
138 free(new->host);
146 list_nces_cache(char *host, int port, nce_entry_t ***nces)
163 fprintf(stderr, "list_nces_cache: wiping %s/%d\n", n->host, n->port);
168 free(n->host);
175 if (strcmp(host, n->host) == 0 && port == n->port)
183 fprintf(stderr, "list_nces_cache: found %s/%d\n", n->host, n->port);
198 * server at host/port. Returns a pointer to a list which
212 list_nces(char *host, int port, nce_entry_t ***nces)
230 if (host == NULL || nces == NULL)
236 numnce = list_nces_cache(host, port, nces);
243 ld = nsdb_connect(host, port, NULL, NULL);
253 * ldapsearch -h $host -b "" -s base objectClass=* namingContexts
317 * ldapsearch -h $host -b $nc objectClass=fedfsNsdbContainerInfo \
403 cache_nces(host, port, numnce, ncelist);
449 char *host, *port, *uuid;
453 host = argv[1];
457 n = list_nces(host, atoi(port), &nce);