ARES_DUP(3)

πŸ“¦
version 1.34.9 Β· 4 versions
, in alpine 3.22, alpine 3.23, alpine 3.24, arch rolling, centos-stream 10, debian trixie, fedora 43, fedora 44, nixos 26.05, nixpkgs unstable, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ 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). 🫢🌈