ARES_DUP(3)
β¨ NAME β¨
okay so bestie, this is ARES_DUP(3) β the page for ares_dup - Duplicate a resolver channel. π¦π
πΈ SYNOPSIS πΈ
Here's the exact spell, no cap:
#include <ares.h>
int ares_dup(ares_channel_t **dest, const ares_channel_t *source)
π DESCRIPTION π
So the ares_dup(3) function is out here doing the most: it 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. That's your little VIP pass to the channel, and you're the main character. π
The caller should invoke ares_destroy(3) on the handle when the channel is no longer needed. Like, when you're done, clean up your mess, periodt. π§Ήπ«Ά
π SEE ALSO π
β AVAILABILITY β
ares_dup(3) was added in c-ares 1.6.0. So if you're on something older, that's the tea. π
mwah π β this page is from the Library Functions Manual, dated 26 May 2009, for ARES_DUP(3). π«Άπ
π¦ where this page comes from
- alpine 3.22: c-ares-doc 1.34.9-r0 Β· MIT
- alpine 3.23: c-ares-doc 1.34.9-r0 Β· MIT
- alpine 3.24: c-ares-doc 1.34.9-r0 Β· MIT
- arch rolling: c-ares 1.34.9-1 Β· MIT
- centos-stream 10: c-ares-devel 1.34.9-1.el10 Β· MIT
- debian trixie: libc-ares-dev 1.34.5-1+deb13u1 Β· MIT
- fedora 43: c-ares-devel 1.34.5-2.fc43 Β· MIT
- fedora 43: c-ares-devel 1.34.5-2.fc43 Β· MIT
- fedora 43: c-ares-devel 1.34.8-1.fc43 Β· MIT
- fedora 43: c-ares-devel 1.34.8-1.fc43 Β· MIT
- fedora 44: c-ares-devel 1.34.6-3.fc44 Β· MIT
- fedora 44: c-ares-devel 1.34.6-3.fc44 Β· MIT
- fedora 44: c-ares-devel 1.34.8-1.fc44 Β· MIT
- fedora 44: c-ares-devel 1.34.8-1.fc44 Β· MIT
- nixos 26.05: c-ares 1.34.9
- nixpkgs unstable: c-ares 1.34.8
- opensuse-leap 16.0: c-ares-devel 1.34.8-160000.1.1 Β· MIT
- opensuse-leap 16.0: c-ares-devel 1.34.8-160000.1.1 Β· MIT
- opensuse-leap 16.0: c-ares-devel 1.34.8-160000.1.1 Β· MIT
- opensuse-leap 16.0: c-ares-devel 1.34.8-160000.1.1 Β· MIT
- ubuntu questing: libc-ares-dev 1.34.5-1
- ubuntu questing: libc-ares-dev 1.34.5-1ubuntu0.1
- ubuntu resolute: libc-ares-dev 1.34.6-1 Β· MIT
- ubuntu resolute: libc-ares-dev 1.34.6-1ubuntu0.1
- ubuntu resolute: libc-ares-dev 1.34.6-1ubuntu0.2 Β· MIT
- ubuntu stonking: libc-ares-dev 1.34.8-1 Β· MIT
- π the page's license: MIT
- Copyright (C) 2004-2009 by Daniel Stenberg
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms