-
- if (sp->pipefd[0] != -1)
- return 0;
- if (pipe(sp->pipefd) == -1)
- return 0;
-
- sp->port = port;
- xfree(sp->hoststr);
- sp->hoststr = xstrdup(str);
- sp->thread_id = yaz_thread_create(resolver_thread, h);
- return sp->hoststr;
-}
-
-#else
-
-void *tcpip_straddr(COMSTACK h, const char *str)
-{
- tcpip_state *sp = (tcpip_state *)h->cprivate;
- const char *port = "210";
- struct addrinfo *ai = 0;
- if (h->protocol == PROTO_HTTP)