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

NAME

6       ares_dup - Duplicate a resolver channel
7

SYNOPSIS

9       #include <ares.h>
10
11       int ares_dup(ares_channel *dest, ares_channel source)
12

DESCRIPTION

14       The  ares_dup(3) function duplicates an existing communications channel
15       for name service lookups.  If it returns successfully, ares_dup(3) will
16       set  the  variable  pointed to by dest to a handle used to identify the
17       name service channel.  The caller should invoke ares_destroy(3) on  the
18       handle when the channel is no longer needed.
19
20       The  ares_dup_options function also initializes a name service channel,
21       with additional options set exactly as the source channel has them con‐
22       figured.
23

SEE ALSO

25       ares_destroy(3), ares_init(3), ares_library_init(3)
26

AVAILABILITY

28       ares_dup(3) was added in c-ares 1.6.0
29

AUTHOR

31       Daniel Stenberg
32
33
34
35
36                                  26 May 2009                      ARES_DUP(3)
Impressum