ares_save_options

Langue: en

Version: 1 June 2007 (debian - 07/07/09)

Section: 3 (Bibliothèques de fonctions)

NAME

ares_save_options - Save configuration values obtained from initialized ares_channel

SYNOPSIS

 #include <ares.h>
 
 void ares_save_options(ares_channel channel, struct ares_options *options, int *optmask)
 

DESCRIPTION

The ares_save_options(3) function saves the channel data identified by channel, into the options struct identified by options, and saves the mask of options which are set to the integer pointer (passed by reference) identified by optmask.

The resultant options and optmask are then able to be passed directly to ares_init_options. When the options are no longer needed, ares_destroy_options should be called to free any associated memory.

NOTE

Since c-ares 1.6.0 the ares_options struct has been "locked" meaning that it won't be extended to cover new funtions. This function will remain functioning, but it can only return config data that can be represented in this config struct, which may no longer be the complete set of config options. ares_dup(3) will not have that restriction.

SEE ALSO

ares_destroy_options(3), ares_init_options(3), ares_dup(3)

AVAILABILITY

ares_save_options(3) was added in c-ares 1.4.0

AUTHOR

Brad House
Copyright 1998 by the Massachusetts Institute of Technology.