1ARES_TIMEOUT(3) Library Functions Manual ARES_TIMEOUT(3)
2
3
4
6 ares_timeout - return maximum time to wait
7
9 #include <ares.h>
10
11 struct timeval *ares_timeout(ares_channel channel,
12 struct timeval *maxtv,
13 struct timeval *tv)
14
16 The ares_timeout(3) function determines the maximum time for which the
17 caller should wait before invoking ares_process(3) to process timeouts.
18 The parameter maxtv specifies a existing maximum timeout, or NULL if
19 the caller does not wish to apply a maximum timeout. The parameter tv
20 must point to a writable buffer of type struct timeval It is valid for
21 maxtv and tv to have the same value.
22
23 If no queries have timeouts pending sooner than the given maximum time‐
24 out, ares_timeout(3) returns the value of maxtv; otherwise ares_time‐
25 out(3) stores the appropriate timeout value into the buffer pointed to
26 by tv and returns the value of tv.
27
29 ares_fds(3), ares_process(3), ares_process_fd(3)
30
32 Greg Hudson, MIT Information Systems
33 Copyright 1998 by the Massachusetts Institute of Technology.
34
35
36
37 25 July 1998 ARES_TIMEOUT(3)