1ARES_FDS(3) Library Functions Manual ARES_FDS(3)
2
3
4
6 ares_fds - return file descriptors to select on
7
9 #include <ares.h>
10
11 int ares_fds(ares_channel channel,
12 fd_set *read_fds,
13 fd_set *write_fds)
14
16 The ares_fds(3) function retrieves the set of file descriptors which
17 the calling application should select on for reading and writing for
18 the processing of name service queries pending on the name service
19 channel identified by channel.
20
21 File descriptors will be set in the file descriptor sets pointed to by
22 read_fds and write_fds as appropriate. File descriptors already set in
23 read_fds and write_fds will remain set; initialization of the file de‐
24 scriptor sets (using FD_ZERO) is the responsibility of the caller.
25
27 ares_fds(3) returns a value that is one greater than the number of the
28 highest socket set in either read_fds or write_fds. If no queries are
29 active, ares_fds(3) returns 0.
30
32 ares_timeout(3), ares_process(3)
33
35 Greg Hudson, MIT Information Systems
36 Copyright 1998 by the Massachusetts Institute of Technology.
37
38
39
40 23 July 1998 ARES_FDS(3)