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