Section: C Library Functions (3)
Updated: 5 March 2010
ares_init - Initialize a resolver channel
int ares_init(ares_channel *channelptr)
function initializes a communications channel for name
service lookups. If it returns successfully, ares_init(3)
will set the
variable pointed to by channelptr
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.
The ares_init_options(3) function is provide to offer more init
can return any of the following values:
A configuration file could not be read.
The process's available memory was exhausted.
c-ares library initialization not yet performed.
When initializing from
directives to allow lookups of short names relative to the domains
directives override one another. If more that one instance of either
directives is specified, the last occurrence wins. For more information,
please see the
Greg Hudson, MIT Information Systems
Copyright 1998 by the Massachusetts Institute of Technology.
Copyright (C) 2004-2010 by Daniel Stenberg.