Lines Matching defs:timeout
311 /* Versions of gethostbyname and getaddrinfo that support timeout. */
328 In case of timeout, NULL is returned and errno is set to ETIMEDOUT.
330 other than timeout, errno is reset. */
333 gethostbyname_with_timeout (const char *host_name, double timeout)
337 if (run_with_timeout (timeout, gethostbyname_with_timeout_callback, &ctx))
386 In case of timeout, the EAI_SYSTEM error code is returned and errno
392 double timeout)
400 if (run_with_timeout (timeout, getaddrinfo_with_timeout_callback, &ctx))
671 double timeout = opt.dns_timeout;
774 timeout = 0; /* no timeout needed when "resolving"
780 err = getaddrinfo_with_timeout (host, NULL, &hints, &res, timeout);
807 struct hostent *hptr = gethostbyname_with_timeout (host, timeout);