1ARES_FDS(3)                Library Functions Manual                ARES_FDS(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       int ares_fds(ares_channel channel, fd_set *read_fds,
12       fd_set *write_fds)
13

DESCRIPTION

15       The  ares_fds  function retrieves the set of file descriptors which the
16       calling application should select on for reading and  writing  for  the
17       processing  of name service queries pending on the name service channel
18       identified by channel.  File  descriptors  will  be  set  in  the  file
19       descriptor  sets  pointed  to by read_fds and write_fds as appropriate.
20       File descriptors already set in read_fds and write_fds will remain set;
21       initialization  of  the  file  descriptor  sets  (using FD_ZERO) is the
22       responsibility of the caller.
23

RETURN VALUES

25       ares_fds returns one greater than the number of the highest socket  set
26       in  either  read_fds  or write_fds.  If no queries are active, ares_fds
27       will return 0.
28

SEE ALSO

30       ares_timeout(3), ares_process(3)
31

AUTHOR

33       Greg Hudson, MIT Information Systems
34       Copyright 1998 by the Massachusetts Institute of Technology.
35
36
37
38                                 23 July 1998                      ARES_FDS(3)
Impressum