ares_dup(3)

ares_dup3

Duplicate a resolver channel

Usage

#include <ares.h>
int ares_dup(ares_channel_t **dest, const ares_channel_t *source)

Overview

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.

Releases

9 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0–8
  2. 9–12
  3. 13–Arch

Availability

ares_dup(3) was added in c-ares 1.6.0

From c-ares 1.34.9-1 in Arch Linux 2026-11-01. Parsed by carta from the page's man source.