Lines Matching defs:host
191 * addr_strings - helper function to get host and service names
196 * host name or numeric representation. Unused if NULL.
212 char host[NI_MAXHOST] = "", serv[NI_MAXSERV] = "";
220 host, sizeof(host), serv, sizeof(serv),
246 *hostname = OPENSSL_strdup(host);
464 * host:service => *host = "host", *service = "service"
465 * host:* => *host = "host", *service = NULL
466 * host: => *host = "host", *service = NULL
467 * :service => *host = NULL, *service = "service"
468 * *:service => *host = NULL, *service = "service"
474 * host => *host = "host", *service untouched
477 * service => *host untouched, *service = "service"
480 int BIO_parse_hostserv(const char *hostserv, char **host, char **service,
534 if (h != NULL && host != NULL) {
537 *host = NULL;
539 *host = OPENSSL_strndup(h, hl);
540 if (*host == NULL)
623 int BIO_lookup(const char *host, const char *service,
627 return BIO_lookup_ex(host, service, lookup_type, family, socktype, 0, res);
631 * BIO_lookup_ex - look up the host and service you want to connect to.
632 * @host: the host (or node, in case family == AF_UNIX) you want to connect to.
645 * This will do a lookup of the host and service that you want to connect to.
652 int BIO_lookup_ex(const char *host, const char *service, int lookup_type,
676 if (addrinfo_wrap(family, socktype, host, strlen(host), 0, res))
699 if (host != NULL && family == AF_UNSPEC)
713 switch ((gai_ret = getaddrinfo(host, service, &hints, res))) {
790 if (host == NULL) {
807 he = gethostbyname(host);