Lines Matching refs:timeout
153 ldns_sock_wait(int sockfd, struct timeval timeout, int write) in ldns_sock_wait() argument
162 ret = select(sockfd+1, NULL, &fds, NULL, &timeout); in ldns_sock_wait()
164 ret = select(sockfd+1, &fds, NULL, NULL, &timeout); in ldns_sock_wait()
178 ret = poll(pfds, 1, (int)(timeout.tv_sec * 1000 in ldns_sock_wait()
179 + timeout.tv_usec / 1000)); in ldns_sock_wait()
194 struct timeval timeout) argument
236 if(!ldns_sock_wait(sockfd, timeout, 1)) {
284 struct timeval timeout) argument
286 int s = ldns_tcp_connect_from(to, tolen, NULL, 0, timeout);
292 struct timeval timeout) argument
294 return ldns_tcp_connect_from(to, tolen, NULL, 0, timeout);
301 struct timeval timeout) argument
305 sockfd = ldns_tcp_connect_from(to, tolen, from, fromlen, timeout);
318 struct timeval timeout) argument
320 int s = ldns_tcp_bgsend_from(qbin, to, tolen, NULL, 0, timeout);
327 struct timeval timeout) argument
329 return ldns_tcp_bgsend_from(qbin, to, tolen, NULL, 0, timeout);
339 struct timeval timeout, size_t *answer_size) argument
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) argument
368 to, tolen, NULL, 0, timeout, answer_size);
372 ldns_udp_connect(const struct sockaddr_storage *to, struct timeval ATTR_UNUSED(timeout)) argument
387 ldns_udp_connect2(const struct sockaddr_storage *to, struct timeval ATTR_UNUSED(timeout)) argument
405 struct timeval timeout) argument
409 sockfd = ldns_udp_connect2(to, timeout);
430 struct timeval timeout) argument
432 int s = ldns_udp_bgsend_from(qbin, to, tolen, NULL, 0, timeout);
439 struct timeval timeout) argument
441 return ldns_udp_bgsend_from(qbin, to, tolen, NULL, 0, timeout);
448 struct timeval timeout, size_t *answer_size) argument
453 sockfd = ldns_udp_bgsend_from(qbin, to, tolen, from, fromlen, timeout);
460 if(!ldns_sock_wait(sockfd, timeout, 0)) {
485 struct timeval timeout, size_t *answer_size) argument
488 timeout, answer_size);
751 ldns_tcp_read_wire_timeout(int sockfd, size_t *size, struct timeval timeout) argument
764 if(!ldns_sock_wait(sockfd, timeout, 0)) {
790 if(!ldns_sock_wait(sockfd, timeout, 0)) {