Lines Matching defs:timeout

153 ldns_sock_wait(int sockfd, struct timeval timeout, int write)
162 ret = select(sockfd+1, NULL, &fds, NULL, &timeout);
164 ret = select(sockfd+1, &fds, NULL, NULL, &timeout);
178 ret = poll(pfds, 1, (int)(timeout.tv_sec * 1000
179 + timeout.tv_usec / 1000));
182 /* timeout expired */
194 struct timeval timeout)
236 if(!ldns_sock_wait(sockfd, timeout, 1)) {
284 struct timeval timeout)
286 int s = ldns_tcp_connect_from(to, tolen, NULL, 0, timeout);
292 struct timeval timeout)
294 return ldns_tcp_connect_from(to, tolen, NULL, 0, timeout);
301 struct timeval timeout)
305 sockfd = ldns_tcp_connect_from(to, tolen, from, fromlen, timeout);
318 struct timeval timeout)
320 int s = ldns_tcp_bgsend_from(qbin, to, tolen, NULL, 0, timeout);
327 struct timeval timeout)
329 return ldns_tcp_bgsend_from(qbin, to, tolen, NULL, 0, timeout);
339 struct timeval timeout, size_t *answer_size)
344 sockfd = ldns_tcp_bgsend_from(qbin, to, tolen, from, fromlen, timeout);
350 answer = ldns_tcp_read_wire_timeout(sockfd, answer_size, timeout);
365 struct timeval timeout, size_t *answer_size)
368 to, tolen, NULL, 0, timeout, answer_size);
372 ldns_udp_connect(const struct sockaddr_storage *to, struct timeval ATTR_UNUSED(timeout))
387 ldns_udp_connect2(const struct sockaddr_storage *to, struct timeval ATTR_UNUSED(timeout))
405 struct timeval timeout)
409 sockfd = ldns_udp_connect2(to, timeout);
430 struct timeval timeout)
432 int s = ldns_udp_bgsend_from(qbin, to, tolen, NULL, 0, timeout);
439 struct timeval timeout)
441 return ldns_udp_bgsend_from(qbin, to, tolen, NULL, 0, timeout);
448 struct timeval timeout, size_t *answer_size)
453 sockfd = ldns_udp_bgsend_from(qbin, to, tolen, from, fromlen, timeout);
460 if(!ldns_sock_wait(sockfd, timeout, 0)) {
467 * but returns a 'NETWORK_ERROR' much like a timeout. */
485 struct timeval timeout, size_t *answer_size)
488 timeout, answer_size);
751 ldns_tcp_read_wire_timeout(int sockfd, size_t *size, struct timeval timeout)
764 if(!ldns_sock_wait(sockfd, timeout, 0)) {
790 if(!ldns_sock_wait(sockfd, timeout, 0)) {