Go to main content

man pages section 3: Library Interfaces and Headers

Exit Print View

Updated: Wednesday, July 27, 2022
 
 

ares_dup (3)

Name

ares_dup - Duplicate a resolver channel

Synopsis

#include <ares.h>

int ares_dup(ares_channel *dest, ares_channel source)

Description

ARES_DUP(3)                Library Functions Manual                ARES_DUP(3)



NAME
       ares_dup - Duplicate a resolver channel

SYNOPSIS
       #include <ares.h>

       int ares_dup(ares_channel *dest, ares_channel source)

DESCRIPTION
       The  ares_dup(3) function duplicates an existing communications channel
       for name service lookups.  If it returns successfully, ares_dup(3) will
       set  the  variable  pointed to by dest to a handle used to identify the
       name service channel.  The caller should invoke ares_destroy(3) on  the
       handle when the channel is no longer needed.


ATTRIBUTES
       See attributes(7) for descriptions of the following attributes:


       +---------------+------------------+
       |ATTRIBUTE TYPE | ATTRIBUTE VALUE  |
       +---------------+------------------+
       |Availability   | library/libcares |
       +---------------+------------------+
       |Stability      | Volatile         |
       +---------------+------------------+

SEE ALSO
       ares_destroy(3), ares_init(3), ares_library_init(3)

AVAILABILITY
       ares_dup(3) was added in c-ares 1.6.0

AUTHOR
       Daniel Stenberg




NOTES
       Source  code  for open source software components in Oracle Solaris can
       be found at https://www.oracle.com/downloads/opensource/solaris-source-
       code-downloads.html.

       This     software     was    built    from    source    available    at
       https://github.com/oracle/solaris-userland.   The  original   community
       source    was   downloaded   from    https://c-ares.haxx.se/download/c-
       ares-1.17.2.tar.gz.

       Further information about this software can be found on the open source
       community website at https://c-ares.haxx.se/.



                                  26 May 2009                      ARES_DUP(3)