1ARES_TIMEOUT(3)            Library Functions Manual            ARES_TIMEOUT(3)
2
3
4

NAME

6       ares_fds - Get file descriptors to select on for name service
7

SYNOPSIS

9       #include <ares.h>
10
11       struct timeval *ares_timeout(ares_channel channel,
12       struct timeval *maxtv, struct timeval *tv)
13

DESCRIPTION

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  tv
19       must  point  to  a writable buffer of type struct timeval.  It is valid
20       for maxtv and tv 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  tv
25       and returns the value of tv.
26

SEE ALSO

28       ares_fds(3), ares_process(3)
29

AUTHOR

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)
Impressum